Similar issue in the German forums: http://forum.opencart.com/viewtopic.php?f=37&p=554379
This occurs only with OpenCart 2.0.2.0. All previous versions work fine with identical settings.
Reproduced on two separate installation instances both with and without vQmod. Local development (darwin) and on a commercial web host.
This occurs when sending mail, such as order confirmation, forgotten password, etc when using smtp mail method.
"Mail" (phpmail) setting works fine. "SMTP" both with populated fields and unpopulated fields causes the same result below.
In my particular instance, I had used the following fields:
Mail Parameters: Blank
SMTP Hostname: ssl://smtp.gmail.com
port: 465
(I also tested other mail servers known to be working in previous versions including TLS on 587)
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Users/default/Sites/local.oc/2020v/system/library/mail.php on line 168Warning: fsockopen(): unable to connect to :465 (php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known) in /Users/default/Sites/local.oc/2020v/system/library/mail.php on line 168Notice: Error: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known (0) in /Users/default/Sites/local.oc/2020v/system/library/mail.php on line 171
Line 168 ~ 171: (system/library/mail.php & vqcache/vq2-system_library_mail.php)
Code: Select all
$handle = fsockopen($hostname, $this->smtp_port, $errno, $errstr, $this->smtp_timeout);
if (!$handle) {
trigger_error('Error: ' . $errstr . ' (' . $errno . ')');