[英]WAMP - SMTP server response: 530 SMTP authentication is required
I would like configure my wamp-mail-server. 我想配置我的wamp-mail-server。 In file php.ini have I this configuration : 在文件php.ini中,我有以下配置:
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http: //php.net/sendmail-from
sendmail_from = kubus.martin@gmail.com
My code in php file : 我在php文件中的代码:
< ?php mail('kubus.martin@gmail.com', 'Hello!', 'test email'); ? >
and i become this alert: 而我成为此警报:
SMTP server response: 530 SMTP authentication is required SMTP服务器响应:要求530 SMTP身份验证
I don`t have any password. 我没有密码。 I am using wamp... 我正在使用沼泽...
mail()
function is awful and can't handle SMTP-Auth. 去获取PHPMailer,因为PHP的内置mail()
函数非常糟糕,无法处理SMTP-Auth。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.