awesomemotive / WP-Mail-SMTP

The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 3 million sites.
https://wordpress.org/plugins/wp-mail-smtp/
GNU General Public License v3.0
55 stars 34 forks source link

Gmail API no longer working after update #100

Closed ID4600 closed 2 years ago

ID4600 commented 3 years ago

Expected Behavior

Gmail API is correctly connected. Can select different email aliases but when sending test mail I get the message that the connections is blocked by host. Connection was working fine till yesterday, but now it isn't.

Current Behavior

As said above, can't send out emails anymore. I've contacted google because they manage my email and everything on their side seems to check out.

Possible Solution

Well in my case I would do a roll back but that doesn't seem to fix it either.

Steps to Reproduce

Not sure, after updating it's not working anymore. Rolling back to the earlier version doesn't fix it either.

Versions: WordPress: 5.8 WordPress MS: No PHP: 7.4.16 WP Mail SMTP: 3.0.3

Params: Mailer: gmail Constants: No Client ID/Secret: Yes Auth Code: Yes Access Token: Yes

Server: OpenSSL: OpenSSL 1.1.1j 16 Feb 2021 PHP.allow_url_fopen: Yes PHP.stream_socket_client(): Yes PHP.fsockopen(): Yes PHP.curl_version(): 7.68.0

PHPMailer Debug: Invalid address: (From): @kooptickets.nu <- this address is very much valid!

aliases

Login details can be provided on request.

capuderg commented 3 years ago

Hi @ID4600,

as you confirmed, the plugin update does not play a role in this issue. So your web hosting company is blocking your requests to Google (the email sending API request) in which case I would recommend contacting your web hosting support and asking them about it. Or the "Invalid address: (From)" error is the issue. When you select the desired From Email address in our plugin settings, please also save the settings by scrolling to the bottom and clicking on the save settings button.

From the error you displayed above it looks like the From Email address is not complete. Only the @kooptickets.nu part is there, but it needs a word in front of the @ sign.

Let me know how it goes.

Take care!

capuderg commented 2 years ago

I'm closing this issue because of inactivity. If this issue is still relevant, please let us know and we'll reopen it.

Take care!