安装 yum install sendmail
启动sendmail 和postfix
service sendmail start
service postfix start
测试发送邮件
touch mail.php
[code]
<?php
mail('your_email_addr@gmail.com','subject','message body');
?>
[/code]
chmod a+x mail.php
php mail.php
然后检查邮箱中是否已经收到邮件
将邮箱服务设置为开机后即启动
chkconfig sendmail on
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
上一篇:sendmail的配置介绍