Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. add_action('phpmailer_init','mail_setup');
  2. function mail_setup($mailer){
  3. $mailer->isSMTP();
  4. $mailer->Host = 'smtp.gmail.com';
  5. $mailer->SMTPAuth = true;
  6. $mailer->Username = 'bfaisald01@gmail.com';
  7. $mailer->Password = '*********';
  8. $mailer->SMTPSecure = 'tls';
  9. $mailer->Port = 587;
  10. }
  11.  
  12. <?php wp_mail( 'faisal1534@gmail.com', 'Test subject', 'This is test mail.'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement