WordPress的Jetpack插件更新

问题 WordPress的Jetpack插件可以防止恶意攻击和垃圾评论,最近更新需要授权Jetpack访问所在WordPress站点才能运行。但是我的.htaccess限制了特定IP才能访问。 解决 不限制IP访问便可解决: #我先前限制了只有我的公网IP才能登录我的站点。 #allow from 116.87.39.153 allow from all 参考 Fixing Jetpack Connection Issues Getting Started With Jetpack Here’s how to get started with Jetpack.

PHP send email configuration in XAMPP

A few XAMPP configuration points to send the email from PHP by using gmail account, 1, \xampp\sendmail\sendmail.ini smtp_server=smtp.gmail.com smtp_port=587 auth_username=huilin.xiong@gmail.com (your gmail account) auth_password=your passowrd 2, \xampp\php\php.ini sendmail_path = “\”D:\PHP\xampp\sendmail\sendmail.exe\” -t” 3, gmail account sign-in & security setting, set Allow less secure apps: ON If this is not set, the sending email will fail.