Hi @randyolson44,
could you please enable the WP debug logs for your testing site that does not display the authenticated email address? Then visit the WP Mail SMTP settings page + send a test email and see if there are any PHP errors in the .../wp-content/debug.log
file.
If there are no errors the next step would be to try and debug the \WPMailSMTP\Providers\Gmail\Auth::get_user_info
method (file path: src/Providers/Gmail/Auth.php
) with a debug line like: error_log( var_export( $e, true ) );
in the catch
section of the method code, so it would look like this:
try {
$email = $gmail->users->getProfile( 'me' )->getEmailAddress();
} catch ( \Exception $e ) {
error_log( var_export( $e, true ) );
$email = '';
}
Again, visit the WP Mail SMTP settings (refresh the settings page) and check the .../wp-content/debug.log
file. Let me know what the error output in the debug log file will be.
This should all be done on the testing site (not on a production/live site)!
Take care!