Guest User

Untitled

a guest
Mar 30th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. add_action('phpmailer_init', function( PHPMailer $phpmailer ){
  2. $phpmailer->isSMTP();
  3. $phpmailer->Host = 'smtp.mandrillapp.com';
  4. $phpmailer->SMTPAuth = true;
  5. $phpmailer->Port = 587;
  6. $phpmailer->Username = 'USERNAME';
  7. $phpmailer->Password = 'APIKEY';
  8. $phpmailer->SMTPSecure = 'tls';
  9. $phpmailer->addCustomHeader('X-MC-Subaccount', 'SUBACCOUNT');
  10. $phpmailer->setFrom('default@email.com', 'Default Title');
  11. $phpmailer->SMTPOptions = array(
  12. 'ssl' => array(
  13. 'verify_peer' => false,
  14. 'verify_peer_name' => false,
  15. 'allow_self_signed' => true
  16. )
  17. );
  18.  
  19. });
Add Comment
Please, Sign In to add comment