1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 08:39:57 +02:00

More mailer stuff - bug fixes, cron-driven bounce handling, timed send, notify on run complete

This commit is contained in:
e107steved
2009-11-27 21:42:46 +00:00
parent fb01599b92
commit 5d3aaaa541
14 changed files with 886 additions and 258 deletions

View File

@@ -9,8 +9,8 @@
* Forum plugin notify configuration
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/notify_class.php,v $
* $Revision: 1.9 $
* $Date: 2009-11-19 20:24:21 $
* $Revision: 1.10 $
* $Date: 2009-11-27 21:42:46 $
* $Author: e107steved $
*
*/
@@ -112,6 +112,7 @@ class notify
'mail_sender_email' => $pref['siteadminemail'],
'mail_sender_name' => $pref['siteadmin'],
'mail_send_style' => 'textonly',
'mail_notify_complete' => 0, // NEVER notify when this email sent!!!!!
'mail_body' => $message
);
$result = $mailer->saveEmail($mailData, TRUE);
@@ -255,6 +256,13 @@ function notify_newsdel($data)
}
function notify_maildone($data)
{
$message = '<b>'.$data['mail_subject'].'</b><br /><br />'.$data['mail_body'];
e107::getNotify()->send('maildone', NT_LAN_ML_1.': '.$data['mail_subject'], $message);
}
function notify_fileupload($data)
{
global $nt;
@@ -262,6 +270,7 @@ function notify_fileupload($data)
$nt->send('fileupload', $data['upload_name'], $message);
}
if (isset($nt->notify_prefs['plugins']))
{
foreach ($nt->notify_prefs['plugins'] as $plugin_id => $plugin_settings)