PHPMailer SMTP connect failed

こ雲淡風輕ζ 提交于 2019-12-01 20:33:12

Uncoment php_openssl.dll in php.ini

Is the timezone set correctly?

include timezone definitions before loading phpmailer

date_default_timezone_set('Etc/UTC');

require '../PHPMailerAutoload.php';

$mail = new PHPMailer();

Also, if you're trying it from a gmail domain, it ught have been blocked. check at: https://security.google.com/settings/security/activity?hl=pt_BR

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!