|
|
|
@ -363,6 +363,8 @@ class rcmail_sendmail
|
|
|
|
|
* Message delivery, and setting Replied/Forwarded flag on success
|
|
|
|
|
*
|
|
|
|
|
* @param Mail_mime $message Message object
|
|
|
|
|
*
|
|
|
|
|
* @return bool True on success, False on failure
|
|
|
|
|
*/
|
|
|
|
|
public function deliver_message($message)
|
|
|
|
|
{
|
|
|
|
@ -383,14 +385,16 @@ class rcmail_sendmail
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($smtp_error && is_string($smtp_error)) {
|
|
|
|
|
return $this->options['error_handler']($smtp_error, 'error');
|
|
|
|
|
$this->options['error_handler']($smtp_error, 'error');
|
|
|
|
|
}
|
|
|
|
|
else if ($smtp_error && !empty($smtp_error['label'])) {
|
|
|
|
|
return $this->options['error_handler']($smtp_error['label'], 'error', $smtp_error['vars']);
|
|
|
|
|
$this->options['error_handler']($smtp_error['label'], 'error', $smtp_error['vars']);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return $this->options['error_handler']('sendingfailed', 'error');
|
|
|
|
|
$this->options['error_handler']('sendingfailed', 'error');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$message->mailbody_file = $mailbody_file;
|
|
|
|
@ -417,6 +421,8 @@ class rcmail_sendmail
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|