这里是普通文章模块栏目内容页
centos 6.0安装并测试sendmail

安装 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

栏目索引
相关内容