WordPress.org

Ready to get started?Download WordPress

Forums

wp doesn't send user registration email with password using Gmail (21 posts)

  1. freetimetech
    Member
    Posted 7 years ago #

    Hi, I'm hosted at Godaddy/Linux and my Gmail address. When a user registers the automatically email with password is not being sent. I have set the email address also at the Godaddy hosting "content". The initial error I recieved (trying to renew a password) was "The SMTP connection failed to start [tls://smtp.gmail.com]: fsockopen returned Error Number 110 and Error String 'Connection timed out'".

    I have manualy changed the class-smtp.php smtp port to 465 (as instructed by gmail smtp settings) and now get the output:

    Fatal error:
    Uncaught Error of type [swift_connection_exception] with message [The SMTP connection failed to start [tls://smtp.gmail.com:465]: fsockopen returned Error Number 110 and Error String 'Connection timed out']
    @0 wp_mail() in /home/content/r/o/t/rotemrave/html/wp-login.php on line 122
    @1 swift::swift() in /home/content/r/o/t/rotemrave/html/wp-content/plugins/swift-smtp/st_swift.php on line 26
    @2 swift::connect() in /home/content/r/o/t/rotemrave/html/wp-content/plugins/swift-smtp/Swift/lib/Swift.php on line 111

    in /home/content/r/o/t/rotemrave/html/wp-content/plugins/swift-smtp/Swift/lib/Swift/Errors.php on line 99

    Can someone please assist?

  2. freetimetech
    Member
    Posted 7 years ago #

    OK, I have re-installed the DB and the WP template (containng the smtp-php file), now I get the following error:

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function...

    anyone?

  3. Migdal
    Member
    Posted 6 years ago #

    Hi freetimetech!

    Did you solve this problem? I have the same one with my WordPress hosted on Godaddy.

  4. chaff
    Member
    Posted 6 years ago #

    I am getting the same error as well no matter which SMTP plugin I use (I've tried them all). I believe this is due to the free web hosting company blocking any sendmail function as well as not supporting any SSL for free packages. Does anyone have a workaround? It's pretty useless if my readers can't register themselves to comment.

  5. anakalia
    Member
    Posted 6 years ago #

    I'm having the same problem, but only with gmail and only since I upgraded (finally) to WP 2.3+

    I don't think it's a problem with free web hosting, since I pay for mine on Bluehost.

    The error people are getting when they try to register is the same as freetimetech mentioned:

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function...

    I wouldn't have known about it if some of them hadn't emailed me personally asking for a password.

    Anyone, please, have a workaround???

  6. Shaooxz
    Member
    Posted 6 years ago #

    I'm having the same problem.
    2.3, Godaddy (Paid hosting), any email i try.

    The e-mail could not be sent.

  7. victorh
    Member
    Posted 6 years ago #

    I have the same problem. I use bluefishhosting. I try all email plugin but no one work. anybody has any idea ? also I just upgrade to WP 2.5 still can not send email to Register people for the password. Hope some super smart people can find fix the error. in case someone want to check out the error, here is my website address ebuyerstore.com thanks

  8. hakre
    Member
    Posted 6 years ago #

    Just a guess: Maybe your hoster is a kind "one click does it all" and a global network setup prevents computers inside their data centre to connect to any mailserver out there. The admins might think that such an action prevents SPAM.

    The problem you report (connection timed out) says that wordpress email class is not able to connect to the mailserver. So because wordpress can't wordpress can not send the mail out (clear, right?).

    Check with your hoster which options of sending out emails he is providing. Normally doing SMTP with a php mailer class did the job quite well under circumstances mail() was blocked (or crippled) but your hoster might block communication to foreign mail ports today.

    Tell your hoster you want to use the PHP mail() function and you want to send Emails out by SMTP as well.

  9. kellempxt
    Member
    Posted 6 years ago #

    I just installed wp 2.5 on my webhosting.

    i am using google hosted services for my email on my domain (send and recieve email as per normal). except i do not get notifications from my wordpress install.

    i've installed phorum as a forum system on the same website, but i've been recieving any updates for topic moderation. and it seems it has no problem to send out the emails (i believe it also uses the php mail() function.

  10. hakre
    Member
    Posted 6 years ago #

    well that might be the difference then. wordpress uses the swift class wich uses SMTP and not the php mail() function like your forum.

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I use GoDaddy for my blog site and Google Apps for my Domain on that one, and have no problem receiving emails from WordPress. No modifications have been made to WordPress at all, it works without screwing with it.

  12. hakre
    Member
    Posted 6 years ago #

    Otto42, are you using TLS (tls://smtp.gmail.com:465) as well?

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    hakre: No, what would I use that for?

  14. hakre
    Member
    Posted 6 years ago #

    freetimetech uses gmail with TLS and the TLS link gets a timeout then. That is the problem this thread is about:

    Error 1:

    [tls://smtp.gmail.com]: fsockopen returned Error Number 110 and Error String 'Connection timed out'".

    Error 2:

    Fatal error:
    Uncaught Error of type [swift_connection_exception] with message [The SMTP connection failed to start [tls://smtp.gmail.com:465]: fsockopen returned Error Number 110 and Error String 'Connection timed out']
    @0 wp_mail() in /home/content/r/o/t/rotemrave/html/wp-login.php on line 122
    @1 swift::swift() in /home/content/r/o/t/rotemrave/html/wp-content/plugins/swift-smtp/st_swift.php on line 26
    @2 swift::connect() in /home/content/r/o/t/rotemrave/html/wp-content/plugins/swift-smtp/Swift/lib/Swift.php on line 111

    in /home/content/r/o/t/rotemrave/html/wp-content/plugins/swift-smtp/Swift/lib/Swift/Errors.php on line 99

  15. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    That appears to be a problem with some kind of plugin (swift-smtp), not a WordPress issue.

    I'm confused, I guess. I don't see any need for a plugin to have WordPress send emails.

    However, yes, on GoDaddy systems, you cannot connect outside those systems unless you have a dedicated server or something higher end like that. Their shared hosting accounts are firewalled, they can't connect to anything on that port.

  16. hakre
    Member
    Posted 6 years ago #

    Well, then this is certanly the cause of error. The Hoster blocks outgoing traffic sothat this swift-smtp plugin can not use PHP socket functions successfully. That plugin should consider using the mail() function instead, probably this can be used with the hoster.

  17. sierranovember6
    Member
    Posted 6 years ago #

    I get the same result. No PW email on new registrations, however when the account sends a request to create a new password for a 'forgot password?' submission, it sends an email stating so. This email IS RECEIVED. However,when a new password is entered, WordPress says it is sending an email that contains the new PW but it never arrives. Too weird.
    BTW I am using Globat as my web-host.
    SN6

  18. Aw Guo
    Member
    Posted 6 years ago #

    I am a user of Goaddy too. Damn it, what's the matter, even the Dreamhost can send a mail ....

    Anyone can tell us how to fix it?

  19. harryworld
    Member
    Posted 6 years ago #

    I am having the same problem

    My wordpress and bbpress runs on my own server in data center

    I am success I made a plugin for bbpress using PHPMailer to send through SMTP, but failed to do so in WordPress

  20. Pedent
    Member
    Posted 6 years ago #

    @Harryworld

    This worked for me for WordPress: http://wordpress.org/extend/plugins/wp-mail-smtp/

    Is your solution for bbPress available anywhere? I'm sure there are plenty of people who'd find it very useful.

  21. ClaytonJames
    Member
    Posted 6 years ago #

    If I am understanding correctly, for those of you using a Linux host and receiving time-out errors, it is possible that if you are hosted on a Linux server that employs SELinux security features, scripts that cause httpd modules (smtp plugins included), are not allowed to connect to the network by default. A Boolean needs to be manually added to the security context to allow those modules to connect via httpd, thus allowing the smtp plugin to finish it's request. This is not going to be something within your control unless you have a dedicated VM. I believe the socket connection is just plain denied by the security feature.

    Again, I believe that this applies if your server is Linux, the server uses SELinux security features, and you are attempting to use SMTP plugin via WordPress and receiving timeout errors. This of course may not be the only cause, but one you would not be aware of unless you ever had to actually add the Boolean to SELinux on the server side to allow the plugin to function.

    Just more information for your digestion.

Topic Closed

This topic has been closed to new replies.

About this Topic