Last active
August 29, 2015 14:14
-
-
Save tangrufus/c13be785568a36e6ed9d to your computer and use it in GitHub Desktop.
10 Things I Wish I Knew before Hosting WordPress on Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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