php mail 函数发送邮件失败解决方法

WBOY
Release: 2016-06-13 11:51:45
Original
1093 people have browsed it

php mail 函数发送邮件失败

 $from = "[email&#160;protected]";<br />    $to = "[email&#160;protected]";<br />    $subject = "subject";<br />    $mailtext = "blablabla";<br />    mail($to, $subject, $mailtext, "From: $from "); 
Copy after login

邮箱一点反应没有,请大侠指教这里面有什么配置问题么,一直感觉这里面应该是需要有个发送邮箱的密码的参数,但是查了一下好像不需要,不知道我这么不成功是为什么,忘大侠们给点提示
------解决方案--------------------
mail 函数只能使用不需要用户认证的发件服务器发邮件
------解决方案--------------------
用phpmailer发吧。很简单的。
------解决方案--------------------
是 不是SMTP协议没打开

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