Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('phpmailer_init','mail_setup');
- function mail_setup($mailer){
- $mailer->isSMTP();
- $mailer->Host = 'smtp.gmail.com';
- $mailer->SMTPAuth = true;
- $mailer->Username = 'bfaisald01@gmail.com';
- $mailer->Password = '*********';
- $mailer->SMTPSecure = 'tls';
- $mailer->Port = 587;
- }
- ?>
- <?php wp_mail( 'faisal1534@gmail.com', 'Test subject', 'This is test mail.'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement