$conf['mail_system'] = array(
  'default-system' => 'DevelMailLog',
);
if (module_exists('mail_redirect')) {
  // Enable email rerouting.
  $conf['reroute_email_enable'] = 1;
  // Space, comma, or semicolon-delimited list of email addresses to pass
  // through. Every destination email address which is not on this list will be  
  // rerouted to the first address on the list.
  $conf['reroute_email_address'] = "example@example.com";
  // Enable inserting a message into the email body when the mail is being
  // rerouted.
  $conf['reroute_email_enable_message'] = 1;
}

Also: https://www.drupal.org/project/reroute_email

Comments

FluxSauce’s picture

Title: Check for Devel Mail on production environments » Check for development email configurations on production environments
Issue summary: View changes