标签: php email xampp localhost
可能重复: Send email using GMail SMTP server from PHP page
我按照本教程在xampp上配置我的php.ini,将本地主机的电子邮件发送到gmail,hotmail等域的电子邮件。
然而,当代码执行时(mail("myemail","Success","Thanks, that works");) 我收到以下错误:
mail("myemail","Success","Thanks, that works");
警告:mail()[function.mail]:SMTP服务器响应:530需要验证
任何提示我可能做错了什么?