如何测试mail()是否已成功发送邮件?
How can I test if mail() has successfully delivered mail?
推荐答案好mail()只是根据是否已成功接受邮件传递而返回布尔值.从 php 网站:
Well mail() simply returns a boolean value depending on whether the mail was successfully accepted for delivery. From the php site:
如果已成功接受邮件发送,则返回TRUE,即返回FALSE 否则.
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
重要的是要注意,因为该邮件已被接受 传递,并不意味着邮件实际上会到达预期的位置 目的地.
It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.
因此,您可以测试一下是否已发送",但是检查它是否已交付是另一回事.
So you can test to see if it's been "sent", however checking if it's been delivered is another story.
更多推荐
如何测试PHP mail()是否已成功发送邮件
发布评论