• Resolved nera13

    (@nera13)


    I’ve got this success message “You have successfully linked the current site with you Google API project. Now you can start sending emails through Google.”

    But when I send test email I get this error:

    Versions:
    WordPress: 4.9
    WordPress MS: No
    PHP: 7.2.0
    WP Mail SMTP: 1.1.0

    PHPMailer:
    Mailer: gmail

    SMTP Debug:
    [empty]

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    @nera13

    Unfortunately, that message means, that you are connected, but doesn’t mean that email will be sent successfully ??

    Please upgrade to 1.2.0 and re-run the Email Test. You will see the much more useful output. If that text doesn’t help you to identify the problem – please post it back here in this topic.

    Thread Starter nera13

    (@nera13)

    I’ve updated, here is the output:

    Versions:
    WordPress: 4.9
    WordPress MS: No
    PHP: 7.2.0
    WP Mail SMTP: 1.2.0

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

    Server:
    OpenSSL: Yes
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): Yes
    Apache.mod_security: No

    Debug:
    Error while sending via Gmail mailer: { “error”: { “errors”: [ { “domain”: “usageLimits”, “reason”: “accessNotConfigured”, “message”: “Project 336025175257 is not found and cannot be used for API calls. If it is recently created, enable Gmail API by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=336025175257 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.”, “extendedHelp”: “https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=336025175257” } ], “code”: 403, “message”: “Project 336025175257 is not found and cannot be used for API calls. If it is recently created, enable Gmail API by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=336025175257 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.” } }

    Plugin Author Slava Abakumov

    (@slaffik)

    @nera13

    You have created a project, but have not enabled the Gmail API usage for it.

    If it is recently created, enable Gmail API by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=336025175257 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

    Please reread this article: How to Securely Send WordPress Emails Using Gmail SMTP with WP Mail SMTP, especially Step 2: Create a Web Application

    Thread Starter nera13

    (@nera13)

    Thanks, it worked, but I still can’t send messages from contact form 7. I’m using the same email, email is in inotechas.com domain, it can be the problem?

    Plugin Author Slava Abakumov

    (@slaffik)

    @nera13

    What is the From email address in CF7 plugin? Try make them the same: From Email in WP Mail SMTP settings and From Email in Contact Form 7 form.

    Thread Starter nera13

    (@nera13)

    email is the same in both places

    Plugin Author Slava Abakumov

    (@slaffik)

    Email Test works correctly, right? Are emails sending while testing and coming to your inbox?

    You can check whether the email has come through Google servers:
    in Console for Gmail API – there will be a number of requests done in the last 1 hour. You should check the number before and after the order (that generates emails). Here is a screenshot of highlighted areas: https://cloud.supportally.com/oXiZ
    Note: it may take several minutes before data will appear there on a graph.

    If you see before – 0, and after – 2 (or how many emails your site is sending on a form submission). That means that Google received emails and actually sent them. That will mean the problem is in your inbox (full, rejecting, spam, filters, forwarding, archiving etc).

    If the number is not increased after 5-10 minutes – Google is not even receiving anything. That will be harder to debug.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘succesfully connected with G Suite, but email is not sending’ is closed to new replies.