1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Merge pull request #3225 from SimSync/fix_2887

Fixes #2887 added missing "sent()" method
This commit is contained in:
Cameron
2018-07-04 17:38:21 -07:00
committed by GitHub

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;
}
}