public function MimeMailSystem::mail in Mime Mail 7
Send an HTML e-mail message, using Drupal variables and default settings.
Parameters
array $message: A message array, as described in hook_mail_alter() with optional parameters described in mimemail_prepare_message().
Return value
bool TRUE if the mail was successfully accepted, otherwise FALSE.
Overrides MailSystemInterface::mail
File
- includes/
mimemail.mail.inc, line 55 - Mime Mail implementations of MailSystemInterface.
Class
- MimeMailSystem
- Modify the Drupal mail system to send HTML emails.
Code
public function mail(array $message) {
$engine = variable_get('mimemail_engine', 'mimemail');
$mailengine = $engine . '_mailengine';
if (!$engine || !function_exists($mailengine)) {
return FALSE;
}
return $mailengine('send', $message);
}