Gmail 和 PHP MAIL 功能
我有一个小问题,似乎我一生都无法解决。我有一个 php 脚本,它获取一些用户数据并对其进行处理,并向管理员发送一封电子邮件,并向用户发送一封带有激活密钥的电子邮件。这一切都很好,但问题是 GMAIL 帐户。用户收到电子邮件没有问题,但如果它是 GMAIL 帐户,则收件箱或垃圾邮件箱中没有邮件。只是想知道任何人可能有任何解决方案。
I have a small problem that i cannot for the life of me seem to solve. I have a php script which takes some user data and processes it and sends an email to admin and an email to the user with an activation key. This is all fine and dandy, but the problem is GMAIL accounts. The user gets the email no problem but if it is a GMAIL account there is no mail in the inbox or spam box. Just wondering anyone might have any solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从我的评论中移开:
所以总的来说,没有 Gmail 帐户收到您的电子邮件?也许您的主机被列入黑名单,并且您的邮件被彻底禁止?你的服务器被列入黑名单了吗?你检查过吗?另外您的 /var/log/ 邮件队列结果是什么? Gmail 接受邮件吗?
一些工具,请检查您是否被列入黑名单:
moved from my comment:
so across the board, NO gmail accounts get your email? Maybe your host is blacklisted, and your mail is just flat out banned? Is your server blacklisted? Have you checked? Also what is your /var/log/ mail queue result? Does gmail accept the mail?
Some tools, check if you were blacklisted here:
考虑使用一些 SMTP php 实现,这可以揭示可能的问题。它将直接联系 gmail 服务器,而不将它们传递给 MTA。
另请注意,gmail 在端口 465 或 587 上使用启用了 SSL 的 SMTP 服务器。
换句话说,请查看以下内容: http://www.richardlord.net/blog/php-mail-and-gmail
Consider using some SMTP php implementation, which can reveal possible problem.It will contact gmail servers directly without passing them to MTA.
Also note that gmail uses SSL enalbed SMTP servers on port 465 or 587.
On other way, take a look at this : http://www.richardlord.net/blog/php-mail-and-gmail