function mandrill_sender_plain in Mandrill 7
Same name and namespace in other branches
- 8 mandrill.module \mandrill_sender_plain()
- 7.2 mandrill.module \mandrill_sender_plain()
The actual function that calls the API send message.
This is the default function used by mandrill_mailsend().
@array $message Associative array containing message data.
Return value
array Results of sending the message.
Throws
1 string reference to 'mandrill_sender_plain'
- MandrillMailSystem::mail in lib/
mandrill.mail.inc - Send the email message.
File
- ./
mandrill.module, line 216 - Enables Drupal to send email directly through Mandrill.
Code
function mandrill_sender_plain($message) {
if ($mailer = mandrill_get_api_object()) {
return $mailer
->messages_send($message);
}
else {
throw new MandrillException('Missing API key.');
}
}