diff --git a/e107_plugins/user/e_mailout.php b/e107_plugins/user/e_mailout.php index 4674045e7..10e327adc 100644 --- a/e107_plugins/user/e_mailout.php +++ b/e107_plugins/user/e_mailout.php @@ -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; + } + }