| 1 |
<?php |
<?php |
| 2 |
// $Id: phpmailer.drupal.inc,v 1.1.2.1.2.6 2009/11/04 20:14:40 smk Exp $ |
// $Id: phpmailer.drupal.inc,v 1.1.2.1.2.7 2009/11/04 20:29:02 smk Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 121 |
$mail->Subject = $subject; |
$mail->Subject = $subject; |
| 122 |
$mail->Body = $body; |
$mail->Body = $body; |
| 123 |
|
|
| 124 |
if ($mail->SMTPDebug) { |
return $mail->Send(); |
|
ob_start(); |
|
|
} |
|
|
|
|
|
if (!($result = $mail->Send())) { |
|
|
watchdog('phpmailer', t('Error sending e-mail (from %from to %to): %error.', array('%from' => $from, '%to' => $to, '%error' => $mail->ErrorInfo)), WATCHDOG_ERROR); |
|
|
} |
|
|
|
|
|
if ($mail->SMTPDebug) { |
|
|
if ($debug = ob_get_contents()) { |
|
|
drupal_set_message($debug); |
|
|
} |
|
|
ob_end_clean(); |
|
|
} |
|
|
|
|
|
return $result; |
|
| 125 |
} |
} |
| 126 |
|
|