Home > php教程 > php手册 > body text

配置php自带的mail功能

WBOY
Release: 2016-06-06 19:40:19
Original
1520 people have browsed it

之前弄php的时候,需要录制屏幕,就是用php自带的email函数发信,因为没有自己弄过smtp的 服务器,网上提供的smtp服务器都是需要使用密码认证 的,偏偏php内置的函数就没有提供身份认证,也就导致了必须需要在自己的电脑搭建一个可以自主发信的mail服务器!

       之前弄php的时候,需要录制屏幕,就是用php自带的email函数发信,因为没有自己弄过smtp的 服务器,网上提供的smtp服务器都是需要使用密码认证 的,偏偏php内置的函数就没有提供身份认证,也就导致了必须需要在自己的电脑搭建一个可以自主发信的mail服务器!

 

    然后就不断的百度google,因为自己没有光驱,所有就没有配置微软自带的smtp服务,只能是上网找那种专门发信的软件,刚开始找的是webmail,但是不知道怎么配置,这方面网上介绍的不多,所以放弃了,直到搜到一位网上哥们分享的

 

我琢磨着winmail应该可以用, http://www.magicwinmail.com/  上有下载,

然后就下载,安装,配置,开始测试!

 

配置的时候就随便配置没有问题,就是注意一点,管理员的email地址和 在php.ini中的 sendmail_from 配置 要一样!之前我配置的不一样,会报这样的错误:

 

还有一点注意的是我的smtp端口默认的 25 被占了,我就改为 2525,php.ini里面也记得修改就可以!

 

还有一点,有的邮箱是收不到本地机器发的email(像foxmail收不到),qq和163收的到,还有一般收到都是在垃圾邮箱里面!

 

下面是配置 配置php自带的mail功能

 

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 Recommendations
Popular Tutorials
More>
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!