| | |
| | | /** |
| | | * Send the given message compose object using the configured method |
| | | */ |
| | | function rcmail_deliver_message(&$message, $from, $mailto) |
| | | function rcmail_deliver_message(&$message, $from, $mailto, &$smtp_error) |
| | | { |
| | | global $CONFIG, $RCMAIL; |
| | | |
| | |
| | | |
| | | // send message |
| | | $smtp_response = array(); |
| | | $sent = smtp_mail($from, $a_recipients, ($foo = $message->txtHeaders($send_headers, true)), $msg_body, $smtp_response); |
| | | $sent = smtp_mail($from, $a_recipients, ($foo = $message->txtHeaders($send_headers, true)), $msg_body, $smtp_response, $smtp_error); |
| | | |
| | | // log error |
| | | if (!$sent) |
| | |
| | | } |
| | | |
| | | |
| | | function rcmail_send_mdn($uid) |
| | | function rcmail_send_mdn($uid, &$smtp_error) |
| | | { |
| | | global $RCMAIL, $IMAP; |
| | | |
| | |
| | | $compose->setTXTBody(rc_wordwrap($body, 75, "\r\n")); |
| | | $compose->addAttachment($report, 'message/disposition-notification', 'MDNPart2.txt', false, '7bit', 'inline'); |
| | | |
| | | $sent = rcmail_deliver_message($compose, $identity['email'], $mailto); |
| | | $sent = rcmail_deliver_message($compose, $identity['email'], $mailto, $smtp_error); |
| | | |
| | | if ($sent) |
| | | { |