Reputation: 874
I followed these instructions.
https://codex.wordpress.org/Plugin_API/Action_Reference/phpmailer_init
Emails are sending and working for woocommerce, for example when I complete a purchase invoices are sent. But for some reason emails do not send when registering new users to the site.
Is there some log I can check in wordpress for this.
Update: I only have this problem on localhost using Xampp. The real server seems to work fine.
Thanks in advance
Upvotes: 2
Views: 473
Reputation: 11
You can configure C:\xampp\php\php.ini and c:\xampp\sendmail\sendmail.ini for gmail to send mail.
In C:\xampp\php\php.ini you can try to:
Uncomment 'extension=php_openssl.dll'
Find [mail function] and change:
SMTP=smtp.gmail.com smtp_port=587 sendmail_from =
[email protected] sendmail_path =
""C:\xampp\sendmail\sendmail.exe" -t"
Open C:\xampp\sendmail\sendmail.ini and replace with
smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log [email protected] auth_password=my-gmail-password [email protected]
Upvotes: 1