CentOS 6.0 启用sendmail
安装 yum install sendmail启动sendmail 和postfix
service sendmail start
service postfix start
测试发送邮件
touch mail.php
<?php
mail('your_email_addr@gmail.com','subject','message body');
?>
chmod a+x mail.php
php mail.php
然后检查邮箱中是否已经收到邮件
将邮箱服务设置为开机后即启动
chkconfig sendmail on
页:
[1]