You are here

function mandrill_from in Mandrill 8

Same name and namespace in other branches
  1. 7.2 mandrill.module \mandrill_from()
  2. 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,
  );
}