Gmail的SMTP服务器需要非常特定的配置。
通过Gmail帮助:
Outgoing Mail (SMTP) Server (requires TLS) - smtp.gmail.com - Use Authentication: Yes - Use STARTTLS: Yes (some clients call this SSL) - Port: 465 or 587Account Name: your full email address (including @gmail.com)Email Address: your email address (username@gmail.com)Password: your Gmail password
您可能可以在Pear ::
Mail或PHPMailer中设置这些设置。查看他们的文档以获取更多详细信息。



