fabioars
By:
fabioars

Wordpress doen't send email by GMail account

September 23, 2017 316 views
Apache PHP WordPress Email Ubuntu Ubuntu 16.04

I configured Wordpress with the GMail SMTP

Already config the Google App Settings.

The email is a GSuite email.

1 Answer

Hello,

Does this plugin have a log that shows you what happens when trying to send an email? Have you tried enabling WP_DEBUG?

define('WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

After this try to send an email. Then navigate to /wp-content and check for a debug log file.

cd /var/html/wp-content
ls -l
cat debug.log

It might be worth trying a different plugin. This one has always worked well for me. Even has a FAQ entry for setting it up with Google.
https://wordpress.org/plugins/wp-mail-smtp/

Hope this helps.

Have another answer? Share your knowledge.