WordPress.org

Ready to get started?Download WordPress

Forums

Easy WP SMTP
[resolved] SMTP connect() failed (21 posts)

  1. Nathan Ingram
    Member
    Posted 7 months ago #

    Hi... I've triple verified that my login info is correct and tried a couple of different gmail addresses to be sure. I cannot get the plugin to connect.

    Strangely, I've had the same issue with the WP SMTP plugin. Same kind of connection error.

    Is there something at the server level that could be preventing this plugin from working?

    https://wordpress.org/plugins/easy-wp-smtp/

  2. MarximusMG
    Member
    Posted 7 months ago #

    I just installed this plugin and am having the same issue. I've checked over and over again to make sure the SMTP details are correct, but getting the same message:

    SMTP connect() failed

    I'm using an email set up through nsMail (Network Solutions) hosted through AWS EC2.

  3. Nathan Ingram
    Member
    Posted 7 months ago #

    Turns out, for me, port 587 was blocked on my VPS. I had the host open it and everything works fine.

  4. MarximusMG
    Member
    Posted 7 months ago #

    Hmm... I just tried adding an inbound custom TCP rule for port 587 in my EC2 instance security group rules, but still no luck. Anyone else having this issue?

  5. MarximusMG
    Member
    Posted 7 months ago #

    I just tried changing encryption to "None", and it works. Is this a potential issue, not having it SSL encrypted?

  6. pshay92
    Member
    Posted 7 months ago #

    I am having this same issue using gmail. Triple checked the login information.

  7. Frank Gomez
    Member
    Posted 7 months ago #

    I tried changing encryption to none too but no joy. I tried many, many settings, all without success.

  8. andrezasv
    Member
    Posted 6 months ago #

    I have the same issue. Any solution?

  9. Frank Gomez
    Member
    Posted 6 months ago #

    What I did.
    Deleted the SMTP plugins.

    I created an email account (a forward) with the same domain for every websites contact / form / newsletter. That way the email comes from the domain and doesn't get blocked even using php mail function.

  10. bevels
    Member
    Posted 6 months ago #

    I'm getting the same error.

    In case my findings help solve the problem here's what I know.

    - I've tried all possible configurations within the plugin itself.
    - It's most likely NOT my server because I've used the plugin successfully with my hosted mail account (which uses the same port, if it makes any difference)
    - I've tried it with multiple gmail accounts, all have the same issue.
    - I enabled 'Less Secure Apps' in gmail in case contemporary gmail security wasn't allowing the plugin to connect.. no dice.

    Looking forward to someone smarter than me figuring it out!

    Note to person smarter than me.. please post your resolve if you find one.

  11. belindajohnstone
    Member
    Posted 6 months ago #

    Having same problem with Hotmail... anyone?

  12. andrezasv
    Member
    Posted 6 months ago #

    Yes, the emails go to spam folder in hotmails.

  13. betzy
    Member
    Posted 4 months ago #

    gmail say:

    Application/device sign-in attempt (prevented)

  14. Mezloh
    Member
    Posted 4 months ago #

    I cannot get this to work for nothing. Add in valid credentials and this is what i get. SMTP connect() failed. SMDH

  15. rewesh
    Member
    Posted 4 months ago #

    Finally.....
    follow the steps in the link , you will get it solved
    https://support.google.com/mail/answer/78754

  16. max_Q
    Member
    Posted 4 months ago #

    I had to do this (from Google): "If you're still having problems, visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture." Then immediately initiate a connection.

    More info in this article.

    But first, I also had to "allow less secure apps to access your account". From Google: "Your mail app might not support the latest security standards. Learn how to allow less secure apps access to your account."

    Here's an article discussing it. Apparently, "less secure apps" are those that don't support OAuth2.0 for SMTP. It seems like only Google does.

    After all that, my website actually sent an email. It's not like landing on mars, but it's something.

  17. Mezloh
    Member
    Posted 4 months ago #

    In my case it was not a plugin issue at all or a settings issue.

    This is for everyone that hosts their sites on Bluehost, which is where my client's site was hosted.

    Up until this point my client was using domain email so everything was working like it was intended. did not need the smtp plugin.

    He then switched to Google Apps and used gmail for his mx exchange to take advantage of all the resources that integrate with it.

    We were still using his domain email address but it was not ending at Bluehost but rather redirected to Gmail so Bluehost Blacklisted his site.

    After further research into this, earlier this year Bluehost changed their Spam Settings and automatically blacklist all email that is not resolving to their email servers. So no email going through to gmail.

    Once I found this out I got on live chat with Bluehost and sure enough it was blacklisted. Once they whitelisted my client's domain the smtp plugin could connect again and all was happy again.

    It took 6 sessions on live chat (30 minute wait time every time) with them to finally convince them to look for this. They kept saying all your settings are correct there is no reason for this it just needs to propagate.

    The first time I got on chat before I found out about the automatic blacklist I made the "is this domain blacklisted" suggestion to their live chat support. But they told me it wasn't the issue. Many wasted hours but it works.

  18. plansman
    Member
    Posted 3 months ago #

    I got the same problem but tried everything with no luck.

  19. pushkar adhikari
    Member
    Posted 2 months ago #

    i am using Configure-SMTP plugin for sending a mail but its not working.

    when i am trying this to localhost its work fine for me.
    But when i comes to my live server it generate the error SMTP connect() failed.

    I tried every possible configuration but not working for me.
    plz help......
    thanks

  20. Jason Hendriks
    Member
    Posted 1 month ago #

    @max_Q you inspired me to create a solution. If you're having trouble sending Gmail 'using plain passwords to authenticate' (i.e.. SMTPS with SSL or TLS), then you can either

    • ask Google to "allow less secure apps to access your account" or
    • actually use the authentication they want, which is OAuth 2.0

    I wrote a plugin to do just that Postman SMTP with OAuth for Gmail.

    My site emails were being swallowed by Google and I had no idea for months! There was no error. I didn't realize until I tried to use the 'forgot my password' link and found it no longer worked.

  21. wpecommerce
    Member
    Plugin Author

    Posted 1 month ago #

    If you are using Gmail and configuring SMTP for the first time you might get the "Application/device sign-in attempt (prevented)" message. You will need to login to your gmail account and unblock it. Otherwise, the plugin will not be able to send email.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.