1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fixes #2887 added missing "sent()" method

This commit is contained in:
Achim Ennenbach
2018-06-28 13:18:54 +02:00
parent 89e3716c3f
commit cea035a33e

View File

@@ -369,7 +369,22 @@ class user_mailout
return $var;
}
/**
* Manage Sent.
*/
public function sent($data) // trigerred when email sent from queue.
{
if($data['status'] == 1) // Successfully sent
{
// e107::getLog()->add($this->mailerSource . ' email sent', $data, E_LOG_INFORMATIVE, 'SENT');
return true;
}
else // Failed
{
// e107::getLog()->add($this->mailerSource . ' email not sent', $data, E_LOG_FATAL, 'SENT');
return false;
}
}