嘿,伙计们,我正在试着设置一个邮件服务器,这样我就可以用我的php网络服务器发送邮件了。我想我已经设置好了,但是当我尝试发送邮件时,我得到了这个错误:
Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in C:\wamp\www\scripts\register.php on line 57下面是我在php.ini中的邮件服务器配置
[mail function]
; 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 = admin@custombb.no-ip.org下面是我的send mail代码行:
$send = mail($to, $subject, $message, $headers);日志中的错误:
"TCPIP" 3584 "2012-03-15 14:56:20.609" "TCPConnection - Posting AcceptEx on 0.0.0.0:25"
"DEBUG" 3584 "2012-03-15 14:56:20.609" "Creating session 10"
"SMTPD" 3584 10 "2012-03-15 14:56:20.609" "127.0.0.1" "SENT: 220 custombb.no-ip.org ESMTP"
"SMTPD" 3584 10 "2012-03-15 14:56:20.609" "127.0.0.1" "RECEIVED: HELO duncan"
"SMTPD" 3584 10 "2012-03-15 14:56:20.609" "127.0.0.1" "SENT: 250 Hello."
"SMTPD" 868 10 "2012-03-15 14:56:20.625" "127.0.0.1" "RECEIVED: MAIL FROM:<you@yourdomain>"
"SMTPD" 868 10 "2012-03-15 14:56:20.625" "127.0.0.1" "SENT: 550 The address is not valid."
"SMTPD" 3544 10 "2012-03-15 14:56:20.625" "127.0.0.1" "RECEIVED: QUIT"
"SMTPD" 3544 10 "2012-03-15 14:56:20.625" "127.0.0.1" "SENT: 221 goodbye"
"DEBUG" 4080 "2012-03-15 14:56:20.625" "Closing TCP/IP socket"
"DEBUG" 4080 "2012-03-15 14:56:20.625" "Ending session 10"这可能是什么原因造成的?另一种选择是什么?谢谢。
发布于 2012-03-16 10:38:02
邮件地址admin@custombb.no-ip.org返回一个拒绝。
尝试:http://www.gaijin.at/olsmailcheck.php,这表明您的错误日志:‘发送: 550地址无效。’请看这里,例如:http://www.hmailserver.com/documentation/latest/?page=reference_error_messages_smtp
尝试另一个电子邮件帐户。
https://stackoverflow.com/questions/9730799
复制相似问题