Home > Backend Development > PHP Tutorial > mail 失败了但是返回值是1

mail 失败了但是返回值是1

WBOY
Release: 2016-06-06 20:51:36
Original
1361 people have browsed it

测试mail函数,有的时候发现明明失败了但是返回的确实1
我随便填写了一个smtp的地址,竟然有的时候返回是正确的

回复内容:

测试mail函数,有的时候发现明明失败了但是返回的确实1
我随便填写了一个smtp的地址,竟然有的时候返回是正确的

mail函数的返回值仅仅是告诉你,这封邮件是否成功加入了系统邮件服务的队列,因为它实际上是调用系统服务来发送的(比如sendmail,postfix等等),至于你的系统服务最终由没有把这个邮件成功投递到目标地址则不在它的考虑范围内。

Related labels:
php
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