Home > Backend Development > PHP Tutorial > mail函数怎么判断是否发送成功

mail函数怎么判断是否发送成功

WBOY
Release: 2016-06-13 10:02:59
Original
1395 people have browsed it

mail函数如何判断是否发送成功?
感觉手册上写的没有检测这一步。而且原理上讲它也不可能获得是否成功的标记。毕竟执行php的速度和传递email的速度是不一个数量级的。

不知道哪位在这方面有经验,大家聊聊。

------解决方案--------------------
if (mail(...))
echo '成功 ';
else
echo '失败 ';
------解决方案--------------------
用phpmail吧
------解决方案--------------------
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
------解决方案--------------------
你说的 "成功 "是指?


------解决方案--------------------
用htmlmail()好像有5个参数,试一下吧。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template