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
Comment #1
Rouslan Nabioullin commentedI tried replacing $host and $port with the literal constant:
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.
Comment #2
Rouslan Nabioullin commentedI 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"Comment #3
oadaeh commentedI'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.
Comment #4
oadaeh commentedI'm marking this as fixed, since there have been no follow ups in over three weeks.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.