After module installation I can't get the PHPMailer to send any email; always end up with the SMTP -> ERROR: Failed to connect to server: Connection refused (111)

I'm using a gmail app account and these are the settings:

Primary SMTP server: smtp.gmail.com
SMTP Port: 465
Protocol: SSL

with authentication (user and password triple-checked)

Using PHP classes 5.0.2 (as it is the latest tested version)

Hosting is Godaddy, PHP 5.2 Linux installation

-- What I tried:

Use a @gmail account instead of my domain from google apps but nothing.

All combinations of Port and Protocol to no avail.

Installed SMTP module along with PHPMailer module; same results.

Cleared caches - reinstalled module; idem.

http://drupal.org/node/831870 This is a similar issue for "SMTP authentication support" module that ends up in installing PHPMailer as an option and works fine.

What can be blocking (or refusing) my connection is unknown to me. Any help will be greatly appreciated.

Comments

smk-ka’s picture

Status: Active » Closed (duplicate)

Same as #805834: SMTP -> Error: Failed to connect to server: Connection timed out (110) and SMTP Error: Could not connect to SMTP host. In short, your hosting provider is blocking connections with a firewall. You need to open port 465 to be able to connect to Google Mail.

kwjav’s picture

Thanks for the reply! I did what you told and cleared all my worries.
Just for the record, shared hosting on GoDaddy.com does not allow any communication to external SMTPs (you are stuck -like me-
with their http://relay-hosting.secureserver.net/)