You are here

function mimemail_send_message in Mime Mail 6

Send a MIME-encoded e-mail message.

Parameters

$message: The message array.

Return value

TRUE if the mail was successfully accepted for delivery, FALSE otherwise.

1 call to mimemail_send_message()
mimemail in ./mimemail.module
Compose and optionally send a MIME-encoded e-mail message.

File

./mimemail.module, line 227
Component module for sending MIME-encoded e-mails.

Code

function mimemail_send_message($message) {
  $engine = variable_get('mimemail_engine', 'mimemail');
  $mailengine = $engine . '_mailengine';
  if (!$engine || !function_exists($mailengine)) {
    return FALSE;
  }
  return $mailengine('send', $message);
}