Advertisement
Guest User

Untitled

a guest
May 9th, 2017
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // Amazon SES (AWS) instead php mail.
  2. add_action( 'phpmailer_init', 'qr_aws_ses_smtp' );
  3. function qr_aws_ses_smtp( $phpmailer ) {
  4. $phpmailer->isSMTP();
  5. $phpmailer->Host = 'email-smtp.us-east-1.amazonaws.com';
  6. $phpmailer->SMTPAuth = true;
  7. $phpmailer->Port = 25;
  8. $phpmailer->Username = 'AWS SES Credentials - username';
  9. $phpmailer->Password = 'AWS SES Credentials - password';
  10. $phpmailer->SMTPSecure = 'tls';
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement