I am getting the error below... i followed the instructions ans copied and placed phpmailer... i also dont have acces to the server because im using a shared server... the hosting company said they cant install openssl... i have no clue how to fix this i need help... thank you

warning: fsockopen(): unable to connect to smtp.bizmail.yahoo.com:465 in /development/drupal01/modules/smtp/phpmailer/class.smtp.php on line 122.
warning: fsockopen(): unable to connect to smtp.bizmail.yahoo.com:465 in /development/drupal01/modules/smtp/phpmailer/class.smtp.php on line 122.
Unable to send e-mail. Please contact the site admin, if the problem persists.

Comments

patrick_rys’s picture

Title: Error in SMTP » Error in SMTP warning: fsockopen():
vperep’s picture

hello!

same issue

# warning: fsockopen() [function.fsockopen]: unable to connect to mx.profit.su:25 (Operation not permitted) in /home/profit92/public_html/it/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
# warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in /home/profit92/public_html/it/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.
# warning: fsockopen() [function.fsockopen]: unable to connect to :25 (php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known) in /home/profit92/public_html/it/sites/all/modules/smtp/phpmailer/class.smtp.php on line 122.

tried phpMailer_v2.1 and phpMailer_v2.3

thanks !

vperep’s picture

the reason was the provider's settings that prevents sending using smtp function of PHPMailer

virgomania’s picture

Maybe try another port. According the allknowing wikipedia, port 587 helped me with smtp-sending mails through 1blu.de (a german hoster). Now it works like a charm.

franz’s picture

That usually happened to me when the SMTP server connection settings were wrong. Please, in the settings page can you activate debug and send a test message. It should print the whole connection attempt!

franz’s picture

Status: Active » Postponed (maintainer needs more info)
wundo’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)