linux下直接用mail函数发送就可以了.
只要确定postfix或者sendmail服务启动.
/etc/init.d/sendmail start
/etc/init.d/postfix start
只要确定postfix或者sendmail服务启动.
/etc/init.d/sendmail start
/etc/init.d/postfix start
调试欢乐多
怎样查看
我唯一能做的就是用FTP上传
/etc/init.d/postfix status
/etc/init.d/sendmail status
我就只有FTP用户名和密码
我怎样可以运行上面的命令了
Trying to 61.128.198.95:25 Error: Cannot connenct to relay host 61.128.198.95 Error: Connection refused (111) Error: Cannot send email to [email protected]
这是那里出了问题勒
这是什么原因勒??
或者就像楼上说的 启用sendmail 然后直接用 mail函数就行了
MAIL FROM:后面的该跟发件人的邮件地址啊,好像直接回车了。一般出错两三次SMTP服务器就断开连接了
在BLUEHOST下就不行了
在BLUEHOST下就不行了
在BLUEHOST下就不行了
用socket连SMTP发送邮件,应该跟环境和配置关系不大,如果本地可以发上传上去不能发,就比较奇怪了。LZ一段一段调试吧,特别MAIL FROM那个地方,看看到底发送了什么数据出去。
学习中
[/Quotle]