Advertisement
Guest User

Untitled

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