Skip to content

Instantly share code, notes, and snippets.

@bdlangton
Created July 20, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdlangton/53f6161d1c8aa27cb7e8b750f0895e29 to your computer and use it in GitHub Desktop.
Save bdlangton/53f6161d1c8aa27cb7e8b750f0895e29 to your computer and use it in GitHub Desktop.
Set smtp mail system enabled w/maillog. Disable sending emails, but log them.
# Put in settings.php.
$conf['mail_system'] = array('default-system' => 'SmtpMailSystem');
$conf['smtp_deliver'] = '1';
$conf['maillog_devel'] = '1';
$conf['maillog_log'] = '1';
$conf['maillog_send'] = '0';
$conf['maillog_engine'] = 'SmtpMailSystem';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment