AJenbo / agcms

A simple battle proven CMS with a Laravel like code base
GNU General Public License v2.0
3 stars 3 forks source link

Send out newsletter in batches #19

Open AJenbo opened 6 years ago

AJenbo commented 6 years ago

Newsletter fails to send when more then 98 recipients are added to bcc because of rate limit by one.com (that they say isn't there)

https://sentry.io/anders-jenbo/agcms/issues/419147559/

AGCMS\Exception\Exception: 43/142 e-mails blev ikke afsendt.
  File "inc/Entity/Newsletter.php", line 292, in send
    throw new Exception(sprintf(_('Email %d/%d failed to be sent.'), $failedCount, count($contacts)));
  File "inc/Controller/Admin/NewsletterController.php", line 113, in update
    $newsletter->send();
  File "inc/Controller/Admin/NewsletterController.php", line 0, in call_user_func_array
    AGCMS\Controller\Admin\NewsletterController->update
  File "inc/Application.php", line 240, in AGCMS\{closure}
    return call_user_func_array([new $route['controller'](), $route['action']], $matches);
  File "inc/Middleware/Utf8Url.php", line 25, in handle
    return $next($request);
...
(6 additional frame(s) were not displayed)
AJenbo commented 6 years ago

40½/43 of the recipeients that failed to get the latest newsletter

https://sentry.io/anders-jenbo/agcms/issues/421346610/