使用 hMailServer 配置了SMTP服务器,
php.ini打开了所有的错误和警告信息,mail函数无任何提示信息, 对应的gmail信箱没有收到邮件。根据邮件的发送报告,smtp对邮件进行了发送,但是目标服务器没有回应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 = [email protected]
Content-Type: text/plain; charset="utf-8"
Return-Path: <>
Message-ID: <4F0AC3E7-0B58-456E-9C08-6C4AA5E8EA4C@localhost>
Date: Wed, 13 Apr 2011 05:57:30 -0700
From: mailer-daemon@localhost
To: [email protected]
Subject: Undeliverable: We are proccessing your question as soon as possible !
Content-Transfer-Encoding: quoted-printable
X-hMailServer-LoopCount: 1Your message did not reach some or all of the intended recipients. Sent: Wed, 13 Apr 2011 09:47:20 +0100
Subject: We are proccessing your question as soon as possible !The following recipient(s) could not be reached:[email protected]
Error Type: SMTP
Connection to recipients server failed.
Error: Host name: 74.125.127.27, message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondTried 5 time(s)hMailServer
php.ini打开了所有的错误和警告信息,mail函数无任何提示信息, 对应的gmail信箱没有收到邮件。根据邮件的发送报告,smtp对邮件进行了发送,但是目标服务器没有回应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 = [email protected]
Content-Type: text/plain; charset="utf-8"
Return-Path: <>
Message-ID: <4F0AC3E7-0B58-456E-9C08-6C4AA5E8EA4C@localhost>
Date: Wed, 13 Apr 2011 05:57:30 -0700
From: mailer-daemon@localhost
To: [email protected]
Subject: Undeliverable: We are proccessing your question as soon as possible !
Content-Transfer-Encoding: quoted-printable
X-hMailServer-LoopCount: 1Your message did not reach some or all of the intended recipients. Sent: Wed, 13 Apr 2011 09:47:20 +0100
Subject: We are proccessing your question as soon as possible !The following recipient(s) could not be reached:[email protected]
Error Type: SMTP
Connection to recipients server failed.
Error: Host name: 74.125.127.27, message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondTried 5 time(s)hMailServer
如下:
-------------------------------------------------------Content-Type: text/plain; charset="utf-8"
Return-Path: <>
Message-ID: <4F0AC3E7-0B58-456E-9C08-6C4AA5E8EA4C@localhost>
Date: Wed, 13 Apr 2011 05:57:30 -0700
From: mailer-daemon@localhost
To: [email protected]
Subject: Undeliverable: We are proccessing your question as soon as possible !
Content-Transfer-Encoding: quoted-printable
X-hMailServer-LoopCount: 1Your message did not reach some or all of the intended recipients. Sent: Wed, 13 Apr 2011 09:47:20 +0100
Subject: We are proccessing your question as soon as possible !The following recipient(s) could not be reached:[email protected]
Error Type: SMTP
Connection to recipients server failed.
Error: Host name: 74.125.127.27, message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondTried 5 time(s)hMailServer
最后确认问题是我购买的VPS封了25端口
重新换了一个VPS就好了