邮件服务器麻烦

时间:2012-03-16 01:53:45

标签: php mail-server hmail-server

嘿伙计们我正在尝试设置邮件服务器,以便我可以使用我的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中的mailserver配置

[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($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"

可能导致这种情况的原因是什么?有什么选择?感谢。

1 个答案:

答案 0 :(得分:0)

mailaddress admin@custombb.no-ip.org拒绝回复。

尝试:http://www.gaijin.at/olsmailcheck.php 并且这表示您的错误记录为:'SENT:550地址无效。'看这里例如: http://www.hmailserver.com/documentation/latest/?page=reference_error_messages_smtp

尝试其他邮件帐户。

相关问题