Skip to content

Instantly share code, notes, and snippets.

@tangrufus
Last active August 29, 2015 14:14
Show Gist options
  • Save tangrufus/c13be785568a36e6ed9d to your computer and use it in GitHub Desktop.
Save tangrufus/c13be785568a36e6ed9d to your computer and use it in GitHub Desktop.
10 Things I Wish I Knew before Hosting WordPress on Heroku
add_action( 'phpmailer_init', 'wph_phpmailer_init' );
function wph_phpmailer_init( PHPMailer $phpmailer ) {
$phpmailer->IsSMTP();
$phpmailer->SMTPAuth = true; // enable SMTP authentication
$phpmailer->Port = 587; // set the SMTP server port
$phpmailer->Host = 'smtp.mandrillapp.com'; // SMTP server
$phpmailer->Username = 'MANDRILL_USERNAME'; // SMTP server username
$phpmailer->Password = 'MANDRILL_API_KEY'; // SMTP server password
}
define( 'DISALLOW_FILE_EDIT', false );
define( 'DISALLOW_FILE_MODS', false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment