User registration email failed to be sent out and warning displayed in the following settings:

1. opennssl is active because options appear in the settings page
2. SMTP server : smtp.gmail.com
3. SMTP port: 465 or 587 (both tried)
4. Use encrypted protocol: SSL and TLS (both tried)
7. Drupal5 with windows and PHP version 5.1.6
8. In admin/settings/site-information the auto-mailer email is set to my gmail account (@gmail.com )
5. SMTP username: my gmail account (@gmail.com included)
6. SMTP password: my gmail account password
9. Tried to enter new user using another gmail account but no email was sent out. Rather the following warning displayed.

warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Program Files\xampp\htdocs\drupal5\sites\all\modules\mtecommerce\smtp\smtp.module on line 1878.
warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com :587 (Unknown error) in C:\Program Files\xampp\htdocs\drupal5\sites\all\modules\mtecommerce\smtp\smtp.module on line 1878.
warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in C:\Program Files\xampp\htdocs\drupal5\sites\all\modules\mtecommerce\smtp\smtp.module on line 1878.
warning: fsockopen() [function.fsockopen]: Failed to enable crypto in C:\Program Files\xampp\htdocs\drupal5\sites\all\modules\mtecommerce\smtp\smtp.module on line 1878.
warning: fsockopen() [function.fsockopen]: unable to connect to ssl://:587 (Unknown error) in C:\Program Files\xampp\htdocs\drupal5\sites\all\modules\mtecommerce\smtp\smtp.module on line 1878.

Comments

dragonwize’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

This seems is from either configuration error in your xampp installation or a bug in the included library PHPMailer. Without your configuration it would take awhile to locate the issue. Maybe you can to hunt down the problem or someone else that has that problem can provide more help so that we can find the problem faster.

oadaeh’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No response in many months.

rpghost’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

This happened to me too on 6.4

warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/rpglife/public_html/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.

and several more simular errors... I assume it's either the sockets are not setup on the default linux webserver.

Anyone know for sure?
James

gsvitak’s picture

I have the same issue (I am running on Windows as well). I think you need to install OpenSSL for Windows. http://www.slproweb.com/products/Win32OpenSSL.html

Trying now and will let you know.

Greg