Ignore:
Timestamp:
Jul 6, 2009 5:13:10 AM (4 years ago)
Author:
alec
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r2712 r2713  
    13031303 * Send the given message compose object using the configured method 
    13041304 */ 
    1305 function rcmail_deliver_message(&$message, $from, $mailto) 
     1305function rcmail_deliver_message(&$message, $from, $mailto, &$smtp_error) 
    13061306{ 
    13071307  global $CONFIG, $RCMAIL; 
     
    13281328    // send message 
    13291329    $smtp_response = array(); 
    1330     $sent = smtp_mail($from, $a_recipients, ($foo = $message->txtHeaders($send_headers, true)), $msg_body, $smtp_response); 
     1330    $sent = smtp_mail($from, $a_recipients, ($foo = $message->txtHeaders($send_headers, true)), $msg_body, $smtp_response, $smtp_error); 
    13311331 
    13321332    // log error 
     
    13811381 
    13821382 
    1383 function rcmail_send_mdn($uid) 
     1383function rcmail_send_mdn($uid, &$smtp_error) 
    13841384{ 
    13851385  global $RCMAIL, $IMAP; 
     
    14391439    $compose->addAttachment($report, 'message/disposition-notification', 'MDNPart2.txt', false, '7bit', 'inline'); 
    14401440 
    1441     $sent = rcmail_deliver_message($compose, $identity['email'], $mailto); 
     1441    $sent = rcmail_deliver_message($compose, $identity['email'], $mailto, $smtp_error); 
    14421442 
    14431443    if ($sent) 
Note: See TracChangeset for help on using the changeset viewer.