查看文章 |
Ubuntu 8.10 安装与配置 sendmail
2008年12月04日 星期四 17:04
打开终端,输入命令: sudo apt-get install sendmail ps aux |grep sendmail 输出如下: root 9391 0.0 0.3 8748 2000 ? Ss 00:14 0:00 sendmail: MTA: accepting connections andy 13332 0.0 0.1 3236 792 pts/0 R+ 03:58 0:00 grep sendmail 证明sendmail已经成功启动了 sudo vi /etc/php5/apache2/php.ini 找到 sendmail_path,修改为: sendmail_path = /usr/sbin/sendmail -i -t 重启apache sudo apache2ctl restart 现在可以写程序发送邮件了,试试最简单的发送邮件程序: mail('andy@andy.com', 'Title', 'Body'); |
最近读者: