function mandrill_from in Mandrill 7
Same name and namespace in other branches
- 8 mandrill.module \mandrill_from()
- 7.2 mandrill.module \mandrill_from()
Returns an array containing the from information for a Mandrill message.
Return value
array array( 'email' => 'admin@example.com', 'name' => 'My Site', )
2 calls to mandrill_from()
- MandrillMailSystem::mail in lib/
mandrill.mail.inc - Send the email message.
- mandrill_admin_settings in ./
mandrill.admin.inc - Administrative settings.
1 string reference to 'mandrill_from'
- mandrill_uninstall in ./
mandrill.install - Implements hook_uninstall().
File
- ./
mandrill.module, line 398 - Enables Drupal to send email directly through Mandrill.
Code
function mandrill_from() {
$default_from = variable_get('site_mail', ini_get('sendmail_from'));
$email = variable_get('mandrill_from', $default_from);
$name = variable_get('mandrill_from_name', variable_get('site_name'));
return array(
'email' => $email,
'name' => $name,
);
}