12343052 发表于 2015-11-25 11:35:41

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&#43;x mail.php
  php mail.php
  然后检查邮箱中是否已经收到邮件
  

  将邮箱服务设置为开机后即启动
  chkconfig sendmail on
  
页: [1]
查看完整版本: CentOS 6.0 启用sendmail