I have installed the SMTP module by untaring it to /var/www/modules and also untaring phpmailer to the dir in /var/www/modules/smtp/phpmailer, and after configuring the module in the GUI (I used smtp.gmail.com for the SMTP server parameter). I receive this error message when trying to register as a user:

"Error sending e-mail from admin@<my site domain> to <user's email account>@yahoo.com : Language string failed to load: connect_host"

after a lot of troubleshooting I noticed that gmail uses port 465 instead of 25, which may have fixed the issue (or not). Now I'm getting other error messages:

# warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/modules/smtp/phpmailer/class.smtp.php on line 122.
# warning: fsockopen() [function.fsockopen]: unable to connect to :465 (Unknown error) in /var/www/modules/smtp/phpmailer/class.smtp.php on line 122.

Comments

Rouslan Nabioullin’s picture

I tried replacing $host and $port with the literal constant:

$this->smtp_conn = fsockopen("smtp.gmail.com",    # the host of the server
                                 465,    # the port to use
                                 $errno,   # error number if any
                                 $errstr,  # error message if any
                                 $tval);   # give up after ? secs

And now I'm getting the previous error again:

"Error sending e-mail from admin@<my site domain> to <user's email account>@yahoo.com : Language string failed to load: connect_host"

Maybe I should find and change the $host declaration; I merely did the step above for testing. I forgot to mention, I'm using the dev version of the SMTP module on Drupal v6.3. Thanks in advance.

Rouslan Nabioullin’s picture

I reconfigured everything and setup an new MTA, and now I'm only getting this error message (again):
"Error sending e-mail from admin@<my site domain> to <user's email account>@yahoo.com : Language string failed to load: connect_host"

oadaeh’s picture

I've submitted some changes to the HEAD and DRUPAL-6--1 branches that may help address your issues, but I believe you are getting those messages because your configuration is not complete.

If you are still using Gmail, check your configuration against http://drupal.org/node/266048#comment-868081, and get the latest dev release (which may not be available for a while), and see if that helps resolve your problems.

If either of those actions do not resolve your problems, post your configuration (or send me private e-mail), and we'll go from there.

oadaeh’s picture

Status: Active » Fixed

I'm marking this as fixed, since there have been no follow ups in over three weeks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.