使用 gmail SMTP 的 PEAR 邮件不会连续发送 2 封电子邮件
我的 PEAR Mail 和 Mail_mime 都可以很好地使用 gmail 的 SMTP 服务器进行发送。感谢这里的一些帖子帮助我走到了这一步!
但是,在某些情况下,我需要将两封内容不同的电子邮件依次发送给不同的收件人。这是拒绝工作。
我可以确认我尝试发送的两封电子邮件格式正确且有效,因为两封电子邮件都会在发送时将另一封注释掉。但每当我尝试同时发送它们时,只有第一个能够通过。我尝试在中间让 php 休眠 10 秒,并且尝试使用不同的脚本发送第二封电子邮件,该脚本在第一封电子邮件结束后调用。没有什么。
我意识到这是一个相当模糊的问题,因为我没有发现其他文章提到这一点。我没有包含任何代码,因为如上所述,我知道代码运行良好。
因此,我衷心希望有人可能对为什么会出现这种情况有一个好主意。
提前致谢。
I have PEAR Mail and Mail_mime all working very nicely using gmail's SMTP server to send. Thanks to some posts on here that helped me get that far!
But, in some scenarios, I need to send two emails, with different content, and to different recipients one right after the other. This is refusing to work.
I can confirm both the emails I am trying to send are well-formed and valid, as both will send with the other one commented out. But whenever I attempt to send them both, only the first gets through. I have tried putting php to sleep for 10 seconds in between, and I have tried sending the second email in a different script that gets called after the end of the first. Nothing.
I realise this is a pretty obscure problem as I found no other articles mentioning this. I haven't included any code because, as stated, I know the code works fine.
So I am hoping in vein that someone might have a bright idea as to why this might be.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决:更改
以
解决问题。
SOLVED: changing
to
fixed the problem.