CentOS 6.0 啓用sendmail

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


發佈了523 篇原創文章 · 獲贊 15 · 訪問量 190萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章