在ubuntu上发送电子邮件

时间:2010-12-23 23:56:01

标签: php sendmail

我不知道这是否应该进入Ubuntu或SO,所以如果关闭警察到达......我道歉。 Anyho,

如何设置php在ubuntu上发送邮件?我正在使用pear_mime并且只有一个微薄的googlemail帐户。

 sendmail_from has no value.
 sendmail_path is /usr/sbin/sendmail (-t -i)
 SMTP is localhost and stmp_post is 25

节日快乐。

2 个答案:

答案 0 :(得分:1)

如果您在PEAR中使用Mail和Net_SMTP包,则可以在此处使用解决方案:

http://globalconstant.scnay.com/2009/11/06/sending-email-through-gmail-using-php/

这就是我使用Gmail的方式。

答案 1 :(得分:0)

或者,如果这是一台开发机器,您只需安装一个像“postfix”这样的软件包,然后就会给你一个完整的电子邮件发送环境。

相关问题