我使用sendgrid免费帐户在我的php网站上发送电子邮件。它每天提供400封邮件
这是代码
// using SendGrid's PHP Library - https://github.com/sendgrid/sendgrid-php
$sendgrid = new SendGrid($api_user, $api_key);
$email = new SendGrid\Email();
$email->addTo("test@sendgrid.com")
->setFrom("you@youremail.com")
->setSubject("Sending with SendGrid is Fun")
->setHtml("and easy to do anywhere, even with PHP");
$sendgrid->send($email);这段代码运行良好。如果邮件超过400,那么如何在nextday发送免费帐户中的剩余邮件。有没有可能?
发布于 2015-10-28 22:33:24
一旦你达到了你的极限,你需要将这些电子邮件保存到一个数据库或某种存储中。然后,使用cron或自动脚本,遍历队列并将它们送上自己的路。如果你平均每天超过400人,那么第二天排队是不可行的。最终,你只需要找到一个每天提供更多电子邮件的免费服务,或者直接使用它们并为它们的服务付费。
https://stackoverflow.com/questions/28103570
复制相似问题