百度空间 | 百度首页 
 
查看文章
 
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');

类别:Linux | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu