LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 849|回复: 1

sendmail client

[复制链接]
发表于 2007-5-16 16:20:44 | 显示全部楼层 |阅读模式
我想用php的mail()发送邮件,但是php的mail()需要sendmail。
sendmail是mail server, 我可不想为此装个mail server。
有什么mail client(注意不是mail server)可以替代sendmail吗?
如果我的理解不对,请帮忙解释一下
发表于 2007-5-17 01:56:37 | 显示全部楼层
可以试试msmtp。但是需要外部转发服务器。配好后
ln -sf /path/to/msmtp /usr/bin/sendmail 应该就可以了。
下面是我的msmtprc:

# Set default values for all following accounts.
defaults
tls on
logfile /path/to/msmtp.log
# seconds timeout for network connections
timeout 60

account gmail
host smtp.gmail.com
from roamingo@gmail.com
auth on
user roamingo@gmail.com
password xxxxxx

account default : gmail
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表