| 1 |
<?php |
<?php |
| 2 |
// $Id: phpmailer.mimemail.inc,v 1.1.2.1.2.3 2009/11/04 15:40:49 smk Exp $ |
// $Id: phpmailer.mimemail.inc,v 1.1.2.1.2.4 2009/11/04 19:33:11 smk Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 57 |
} |
} |
| 58 |
unset($message['headers']['CC'], $message['headers']['BCC']); |
unset($message['headers']['CC'], $message['headers']['BCC']); |
| 59 |
|
|
|
if ($mail->SMTPDebug) { |
|
|
ob_start(); |
|
|
} |
|
|
|
|
| 60 |
$message['headers']['Date'] = $mail->RFCDate(); |
$message['headers']['Date'] = $mail->RFCDate(); |
| 61 |
if ($message['address']) { |
if ($message['address']) { |
| 62 |
$message['headers']['To'] = $message['address']; |
$message['headers']['To'] = $message['address']; |
| 68 |
// } |
// } |
| 69 |
$header = mimemail_rfc_headers($message['headers']) . $mail->LE . $mail->LE; |
$header = mimemail_rfc_headers($message['headers']) . $mail->LE . $mail->LE; |
| 70 |
|
|
| 71 |
if (!($result = $mail->SmtpSend($header, $message['body']))) { |
return $mail->SmtpSend($header, $message['body']); |
|
watchdog('phpmailer', t('Error sending e-mail (from %from to %to): %error.', array('%from' => $message['sender'], '%to' => $message['address'], '%error' => $mail->ErrorInfo)), WATCHDOG_ERROR); |
|
|
} |
|
|
|
|
|
if ($mail->SMTPDebug) { |
|
|
if ($debug = ob_get_contents()) { |
|
|
drupal_set_message($debug); |
|
|
} |
|
|
ob_end_clean(); |
|
|
} |
|
|
|
|
|
return $result; |
|
| 72 |
} |
} |
| 73 |
|
|