Google app with SMTP for wordpress not working
-
WordPress install on my own local computer and I can access my WP through my XYZ.com website. I am using google app email for my website and its working fine but how can I use google app email with my wordpress because if someone register on my WP admin and subscriber no one receive any email.
For example my domain name is XYZ.com and I want to use [email protected] email address.
I tried this but code not working
<?php
add_action(‘phpmailer_init’, ‘wp_mail_to_smtp’);function wp_mail_to_smtp(&$phpmailer) {
$phpmailer->SMTPSecure = ‘ssl’;
$phpmailer->Mailer = ‘smtp’;
$phpmailer->SMTPAuth = true;
$phpmailer->Host = ‘smtp.gmail.com’;
$phpmailer->Port = ‘465’;
$phpmailer->Username = ‘[email protected]’;
$phpmailer->Password = ‘1234567’;
}
?>Anyone can please help.
Thanks
- The topic ‘Google app with SMTP for wordpress not working’ is closed to new replies.