WordPress.org

Support

Support » How-To and Troubleshooting » wp doesn’t send user registration email with password using Gmail

wp doesn’t send user registration email with password using Gmail

  • 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?

Viewing 15 replies - 1 through 15 (of 20 total)
  • 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?

    Hi freetimetech!

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

    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.

    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???

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

    The e-mail could not be sent.

    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

    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.

    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.

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

    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.

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

    hakre: No, what would I use that for?

    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

    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.

    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.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘wp doesn’t send user registration email with password using Gmail’ is closed to new replies.
Skip to toolbar