• Resolved kilerb

    (@kilerb)


    Hi, I am trying to use a google alias email. I found the instructions to do so here… https://wpmailsmtp.com/gmail-send-from-alias-wp-mail-smtp/#Setting_Up_WP_Mail_SMTP_With_the_Wizard

    At one point during the instructions, it seemed like Google changed some of the places to find things. I found another tutorial and worked through it. The first email went through. After that, all of them are giving errors. I’ll copy and paste the error log if that helps. Any help would be greatly appreciated. Just trying to get a good, basic contact form running on the site. Thanks! Here’s the error log…

    Versions:
    WordPress: 6.5.5
    WordPress MS: No
    PHP: 7.4.33
    WP Mail SMTP: 4.0.1

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

    Server:
    OpenSSL: OpenSSL 1.1.1w 11 Sep 2023
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): 7.87.0
    Apache.mod_security: No

    Debug:
    Email Source: WP Mail SMTP Mailer: Google / Gmail { "error": "unauthorized_client", "error_description": "Unauthorized" }



    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @kilerb,

    Thanks for reaching out! The error message indicates that you’re experiencing an issue related to the Google connection created on your site.

    Could you please try recreating the Google mailer connection on your site and then test your emails?

    Let us know how it goes. Thanks!

    Thread Starter kilerb

    (@kilerb)

    Thanks Darshana. I think that’s where I am misunderstanding. How do you do that if it’s an alias email? Because it gets to the point where you have to login to Gmail. But you can’t log into Gmail with an alias email. So I login with my actual Gmail account. is that the right way to go when you get to the point where it makes you login to Gmail? I followed the tutorial, but I just don’t understand that part. Thanks!

    Plugin Support Darshana

    (@darshanaw)

    Hi @kilerb,

    Thanks for getting in touch! You need to create the Google mailer connection with your original Gmail or Google Workspace account. The alias emails need to be added to your original email account.

    Once you create a Google mailer connection using your original Gmail (or Google Workspace) email address, you should be able to see those alias emails connected with your original email address as a dropdown within the “from email address” section on your WP Mail SMTP -> Settings page.

    Within the “from email address” drop-down, you can select your preferred email address.

    I hope this helps. Thanks!

    Thread Starter kilerb

    (@kilerb)

    Thanks again! I’m not sure what I’m doing wrong… I already have this alias email working in my gmail account. Along with some others. They each go to their own inboxes in the gmail app and I can receive/send emails from them. Under the Gmail accounts settings where it says “Send mail as”… The alias I want to use is listed there. But when I go to WP Mail SMPT setup, the instructions on your website say “Now you’ve added your new alias as a From address in Gmail, it’ll appear in WP Mail SMTP automatically. After you’ve added the account keys, you’ll see a dropdown where you can choose either your primary address or your alias as the primary?From Email?in the WP Mail SMTP plugin settings.” But when I go in there, there is no dropdown in the “from email” field. It just lets me type whatever I want. It’s not letting me pick from a list of my main email or any of my alias emails. Yet above that, under authorization it says I’m connected as “my main email” with a green check next to it. Why isn’t it giving me a drop down option of emails to choose from like the instructions say it should? Thanks again!

    • This reply was modified 4 months, 2 weeks ago by kilerb.
    • This reply was modified 4 months, 2 weeks ago by kilerb.
    Plugin Support Darshana

    (@darshanaw)

    Hi @kilerb,

    Thanks for getting in touch! If you don’t see a “from email address” dropdown under the WP Mail SMTP -> Settings page, could you please enter your alias email as your “From Email address” and try sending a test email to see whether you can receive emails using your alias email?

    Let us know how it goes. Thanks!

    Thread Starter kilerb

    (@kilerb)

    Hi, that’s the problem. I did put my from email as my alias email. It’s not working. That’s why I figured something was wrong since there is no drop down at all when I go to that option. I had to type it in like you’re suggesting. What else can I do? I really want to get this working. I don’t know where I went wrong, I followed all the instructions.

    Plugin Support Darshana

    (@darshanaw)

    Hi @kilerb,

    I apologize for the confusion regarding this. As I have checked with our developers, in our recent updates (v3.11.0), the dropdown menu has been removed, but the alias email functionality will work as it is.

    Under the WP Mail SMTP -> Settings page, please check whether you have enabled the ‘Force From Email’ option. You need to disable that option for the alias email function to work, and you need to manually add the alias email to the ‘From Email Address’ textbox input.

    If you’re still experiencing the issue after disabling that option, it could mean there’s a misconfiguration on the Google side or you’re experiencing a conflict with a third-party plugin.

    Let us know how it goes. Thanks!

    Thread Starter kilerb

    (@kilerb)

    Thanks! So I went into settings and I have ‘force from email’ and ‘force from name’ off. I have my alias email in the ‘from email’ field… And at the bottom where it shows your Client ID and Client Secret, I have Authorized redirect URI set to https://connect.wpmailsmtp.com/google/…. And right below that next to “authorization” it shows “connected as ‘my primary email from the gmail business suite that the alias is connected to.’ I tried sending a test again right now and nothing comes through. It was working before, so I know there’s something wrong… I just don’t know what. The only reason I changed anything over a week ago was because when an email came through and I hit reply it wouldn’t put their email in the ‘to’ field. So something was wrong. Now more things are wrong! Hahaha.. Let me know if there’s something else it could be.

    Also, here’s what it says on the main page now…
    Heads up! The last email your site attempted to send was unsuccessful.

    Email Source: WP Mail SMTP Mailer: Google / Gmail { “error”: “unauthorized_client”, “error_description”: “Unauthorized” }

    Thanks!

    • This reply was modified 4 months, 2 weeks ago by kilerb.
    • This reply was modified 4 months, 2 weeks ago by kilerb.
    Plugin Support Darshana

    (@darshanaw)

    Hi @kilerb,

    Thanks for getting in touch! Usually, when we see the Google mailer repeatedly disconnecting from WP Mail SMTP after about a week or so, it means that your Google API app (OAuth screen section) is in the “Test mode” and needs to be changed to “Production” to resolve this issue.

    Can you please look into adjusting this setting in Google’s API & Services > OAuth consent screen > Publishing status area and see if it resolves this issue for you? Once you make those changes, you need to remove the existing connection under the WP Mail SMTP -> Settings page and recreate the connection.

    Or else, please follow our video guide here and set up a new Google mailer connection on your site.

    I hope this helps. Thanks!

    Thread Starter kilerb

    (@kilerb)

    I just went back in and redid my Google Cloud steps. I think following your tutorial was better than the third party tutorial I followed initially. It worked this time. Thanks!!!

    • This reply was modified 4 months, 2 weeks ago by kilerb.
Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.