无法使用 MAMP PRO 从 php 邮件功能发送邮件

发布于 2024-11-05 23:46:03 字数 2416 浏览 3 评论 0原文

前几天我已经可以轻松地使用 PHP 邮件功能发送电子邮件了。但几天前我更换了 ISP。从那时起我就无法发送任何邮件了。我已经设置了发送邮件到 gmail.com 的后缀配置,它在日志文件中给出了以下错误。

   May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1449]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1446]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1452]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1455]: connect to mx1.hotmail.com[65.55.92.184]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1456]: connect to mx3.hotmail.com[65.55.92.136]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1453]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: warning: 11C203ECD84: defer service failure
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: 11C203ECD84: to=<[email protected]>, relay=none, delay=4504, delays=4353/0.13/150/0, dsn=4.4.1, status=deferred (connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out)
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: warning: 11C203ECD84: defer service failure
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: 11C203ECD84: to=<[email protected]>, relay=none, delay=4504, delays=4353/0.13/150/0, dsn=4.4.1, status=deferred (connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out)

什么可能导致问题?你认为这是我的新 ISP 吗?我打电话给那里的客户服务中心,不幸的是他们不知道这一点。我从 php 发送邮件的可能解决方案是什么,我正在使用 MAMP PRO 1.9.2。

before few days i have been comfortably sending emails using PHP mail function. but few days back i switched my ISP. and since then i am not able to send any mails. i have setup the postfix configuration of outgoing mail to gmail.com and it gives me the following error in the log file.

   May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1449]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1446]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1452]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1455]: connect to mx1.hotmail.com[65.55.92.184]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1456]: connect to mx3.hotmail.com[65.55.92.136]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1453]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
    May  6 18:54:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: connect to aspmx.l.google.com[74.125.53.27]:25: Operation timed out
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: warning: 11C203ECD84: defer service failure
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: 11C203ECD84: to=<[email protected]>, relay=none, delay=4504, delays=4353/0.13/150/0, dsn=4.4.1, status=deferred (connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out)
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: warning: 11C203ECD84: defer service failure
May  6 18:56:05 Ibrahim-Armars-MacBook-Pro postfix/smtp[1454]: 11C203ECD84: to=<[email protected]>, relay=none, delay=4504, delays=4353/0.13/150/0, dsn=4.4.1, status=deferred (connect to aspmx3.googlemail.com[72.14.213.27]:25: Operation timed out)

what could be causing the problem? do you think it is my new ISP? i called there customer care and unfortunately they don't know about this. what would be the possible solution for me to send mail from php , i am using MAMP PRo 1.9.2.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终陌 2024-11-12 23:46:03

很典型的是,为您提供 Internet 访问权限的 ISP 会阻止除其自己的电子邮件服务器之外的其他电子邮件服务器的端口 25 的任何连接。

您应该将您的脚本指向使用您的 isp 的 smtp 服务器发送电子邮件,而不是像您的日志文件所指出的那样使用 google 的服务器。

Its very typical that ISP's that provide you with access to internet, will block any connections to port 25 to some other email server besides their own.

You should point your script to use your isp's smtp server to send emails out, not google's as your log files are pointing out.

清晨说晚安 2024-11-12 23:46:03

似乎有一些防火墙阻止了连接

seems like there is some firewall which is blocking the connection

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文