doulao2916 2010-08-17 23:58
浏览 23

梨邮件是如此之慢,我的前端正在超时

I've got a php script that sends a few emails and echoes a response back to my front end.

The problem is that the email handling is so slow, the front end is timing out. Here are the broad strokes for the email implementation.

The scenario kicks off when User A books an offer from User B. User A gets a confirmation email, User B gets a notification email and myself and 2 other employees get an email alert.

So that's 3 unique email messages and 5 addresses. And the tech specifics are:

  1. I'm using the Pear Mail class
  2. I'm using smtp as the mail type.
  3. I have authentication set to true.

I thought that the smtp transaction would be pretty straightforward. I assumed I'd handshake with the mail server, pass my message off into their queue and be free and clear. But it does seem that everything is hanging for quite a bit.

  • 写回答

1条回答 默认 最新

  • douzhan4522 2010-08-18 02:26
    关注

    The Pear Mail Class is straightforward.

    If you are using the host parameter as a URL (like domain.com) instead of an IP address the problem can rely on the DNS timeout, try using IP as the domain for the host (like $smtpinfo["host"] = "200.203.201.123";) instead.

    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀