安裝 yum install sendmail
啓動sendmail 和postfix
service sendmail start
service postfix start
測試發送郵件
touch mail.php
[code]
<?php
mail('[email protected]','subject','message body');
?>
[/code]
chmod a+x mail.php
php mail.php
然後檢查郵箱中是否已經收到郵件
將郵箱服務設置爲開機後即啓動
chkconfig sendmail on