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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user