简体   繁体   English

WAMP-SMTP服务器响应:要求530 SMTP身份验证

[英]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... 我正在使用沼泽...

  1. Whoever configured SMTP on your server did it correctly since it's requiring a username and password. 在服务器上配置SMTP的任何人都可以正确执行 SMTP,因为它需要用户名和密码。
  2. Ask whoever that was for the username and password you should use. 询问谁是您应该使用的用户名和密码。
  3. Go get PHPMailer because PHP's built in mail() function is awful and can't handle SMTP-Auth. 去获取PHPMailer,因为PHP的内置mail()函数非常糟糕,无法处理SMTP-Auth。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM