php mail 函数发送邮件失败

WBOY
Release: 2016-06-23 14:00:37
Original
963 people have browsed it

$from = "123456@mail.de"; $to = "654321@mail.de"; $subject = "subject"; $mailtext = "blablabla"; mail($to, $subject, $mailtext, "From: $from ");
Copy after login

邮箱一点反应没有,请大侠指教这里面有什么配置问题么,一直感觉这里面应该是需要有个发送邮箱的密码的参数,但是查了一下好像不需要,不知道我这么不成功是为什么,忘大侠们给点提示


回复讨论(解决方案)

mail 函数只能使用不需要用户认证的发件服务器发邮件

用phpmailer发吧。很简单的。

是 不是SMTP协议没打开

后来使用phpmailer搞定了谢谢大家

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!