The SMTP Module is works fine in local ubundu linux machine.
SMTP details are
Host: smtp.gmail.com
port : 25
Authendictaion encryption : TSL

But it not works in my godaddy linux hosting server
i am also test with all gmail ports like 587 TSL and 465 SSL .and default 25 port also.

when i send the mail i have the error message below

""SMTP -> ERROR: Failed to connect to server: Connection refused (111) SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) ""

So how resolve this problem in my hosting linux server.?

Comments

Roze-1’s picture

Which Version are you using?

kannan27’s picture

I am using drupal 6.x modules

Roze-1’s picture

What about the SMTP Version?

kannan27’s picture

kannan27’s picture

i am getting the same problem again...

Module i am using
6.x-1.0-beta5 version for SMTP Authentication Support
6.x-2.2 version for PHPMailer

but my hosting server reponse the error below....

* warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Connection refused) in /home/content/33/5093333/html/mysite/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/content/33/5093333/html/mysite/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: unable to connect to ssl://:465 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/content/33/5093333/html/mysite/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
* Unable to send e-mail. Please contact the site administrator if the problem persists.

Roze-1’s picture

Check your private messages or e-mail.

WorldFallz’s picture

Please don't spam the forum with duplicate threads. I've deleted the dupes, thanks.