1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 21:02:09 +02:00

New 'sent' method added to e_mailout. Triggered during email queue processing.

This commit is contained in:
Cameron
2014-11-14 18:15:03 -08:00
parent 20d8aec3ba
commit d4d55ac057
2 changed files with 40 additions and 0 deletions

View File

@@ -237,6 +237,23 @@ class newsletter_mailout
{
e107::getLog()->add('Newsletter Bounce', $data, E_LOG_INFORMATIVE, 'BOUNCE');
}
/**
* Manage Sent.
*/
public function sent($data) // trigerred when email sent from queue.
{
if($data['status'] == 1) // Successfully sent
{
// e107::getLog()->add('Newsletter Sent', $data, E_LOG_INFORMATIVE, 'SENT');
}
else // Failed
{
// e107::getLog()->add('Newsletter Sent', $data, E_LOG_FATAL, 'SENT');
}
}
}