简体   繁体   English

Cakephp email 组件停止工作

[英]Cakephp email component stopped working

Yesterday I wrote code to automatically send emails upon receiving an IPN notification from paypal.昨天我编写了代码,在收到来自 paypal 的 IPN 通知后自动发送电子邮件。 Everything worked great, and I spent the afternoon testing.一切都很好,我花了一个下午的时间进行测试。 Today, everything still works except that no emails are being sent.今天,除了没有发送电子邮件之外,一切仍然有效。 I recreated problem using the most basic code possible:我使用最基本的代码重新创建了问题:

$this->Email->from    = 'Jiminy <Biminy@gmail.com>'; //fake email
$this->Email->to      = 'todd@xxxxxx.com'; //my email
$this->Email->subject = 'broken';
$this->Email->send('Test Send');

Using $this->Email->delivery = 'debug';使用 $this->Email->delivery = 'debug'; shows no problems, and I also attempted to use the native php mail() function to send a test email.显示没有问题,我还尝试使用本机 php mail() function 发送测试 email。 Did not work.不工作。

I am hosted on Dreamhost, and am working live through a sandbox subdomain created in the past week.我托管在 Dreamhost 上,并且正在通过过去一周创建的沙盒子域进行实时工作。 What could be going wrong in this case?在这种情况下可能会出现什么问题? Should I be looking into it from a hosting side?我应该从托管方面进行调查吗? Any ideas?有任何想法吗?

thanks!谢谢! Todd托德

Problem is solved.问题解决了。 All emails came pouring in about 2 hours late.所有的电子邮件都晚了大约 2 小时。 Seems there was a problem on the delivery side, so no change in code was needed.似乎交付方面存在问题,因此无需更改代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM