function mandrill_from in Mandrill 8
Same name and namespace in other branches
- 7.2 mandrill.module \mandrill_from()
- 7 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', )
File
- ./
mandrill.module, line 256 - Enables Drupal to send email directly through Mandrill.
Code
function mandrill_from() {
$email = \Drupal::config('mandrill.settings')
->get('mandrill_from_email');
$name = \Drupal::config('mandrill.settings')
->get('mandrill_from_name');
return array(
'email' => $email,
'name' => $name,
);
}