Created
May 10, 2017 01:37
-
-
Save QROkes/e36c6cb7a6df38f318a998e3479643f1 to your computer and use it in GitHub Desktop.
How to use Amazon SES in WordPress.
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
// Amazon SES (AWS) instead php mail. | |
add_action( 'phpmailer_init', 'qr_aws_ses_smtp' ); | |
function qr_aws_ses_smtp( $phpmailer ) { | |
$phpmailer->isSMTP(); | |
$phpmailer->Host = 'email-smtp.us-east-1.amazonaws.com'; | |
$phpmailer->SMTPAuth = true; | |
$phpmailer->Port = 25; | |
$phpmailer->Username = 'AWS SES Credentials - username'; | |
$phpmailer->Password = 'AWS SES Credentials - password'; | |
$phpmailer->SMTPSecure = 'tls'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment