phpmailer.drupal.inc in PHPMailer 7.3
Same filename and directory in other branches
Implements PHPMailer support on behalf of Drupal core.
File
includes/phpmailer.drupal.incView source
<?php
/**
* @file
* Implements PHPMailer support on behalf of Drupal core.
*/
/**
* Sends an already formatted e-mail message composed by drupal_mail().
*
* @param array $message
* A message array, as described in hook_mail_alter().
*
* @return bool
* TRUE if the mail was successfully accepted, otherwise FALSE.
*
* @see DrupalPHPMailer::mail()
*
* @todo Consider to either drop this entirely, or move into phpmailer.module
* as singleton to instantiate the DrupalPHPMailer class.
*/
function phpmailer_send(array $message) {
$mail =& drupal_static(__FUNCTION__);
if (!isset($mail)) {
$mail = new DrupalPHPMailer();
}
return $mail
->mail($message);
}
Functions
Name | Description |
---|---|
phpmailer_send | Sends an already formatted e-mail message composed by drupal_mail(). |