Send email using PHP with Gmail – PhpMailer通过Gmail发送邮件

Categories: PHP; Tagged with: ; @ September 6th, 2010 22:59

使用PhpMailer通过Gmail账户发送邮件.
具体使用步骤: http://deepakssn.blogspot.com/2006/06/gmail-php-send-email-using-php-with.html

请翻墙使用.

常见错误排除:

1. Mailer Error: SMTP Error: Could not connect to SMTP host

设置php.ini, 移除注释: uncomment the extension=php_openssl.dll

2. SMTP Error: Could not authenticate

这个不能怪别人, 你用户名跟密码不匹配 – Wrong user and password

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.