标签: php ubuntu smtp sendmail
我正在尝试使用sendmail在服务器中发送电子邮件。我尝试在php中和从终端使用邮件功能:echo“ Subject:Try” | sendmail example@gmail.com,但是当我查看mailq时收到一些错误消息。它显示为“延迟:连接因smtp.lg.ehu.eus超时”或“延迟:alt4.gmail-smtp-in.l.google.com:没有主机路由”。
我可以上网,可以ping smtp.gmail.com
这些是通过telnet在端口25上连接到smtp.lg.ehu.eus的结果:
如果您能帮助我,我将不胜感激