Request: Fix class-phpmailer to support SSL connections
-
Please change class-phpmailer in wp-includes to support Google Apps SSL email. In version 2.63, this starts at line 536 and reads:
if(strstr($hosts[$index], ":")) list($host, $port) = explode(":", $hosts[$index]); else { $host = $hosts[$index]; $port = $this->Port; }
To make it work for Google Apps, it has to support pulling the port off the end, but also allow for ssl:// at the start of the host name because ssl://smtp.gmail.com:465 is what works to connect. So here’s what you change it to:
$i=strrpos($hosts[$index], ":"); if($i > 0) { $host = substr($hosts[$index],0,$i); $port = substr($hosts[$index],$i+1,strlen($hosts[$index])-$i); } else { $host = $hosts[$index]; $port = $this->Port; }
Then you can use the wp-mail-smtp plugin to enable SMTP over ssl://smtp.gmail.com:465 and it just works.
HTH,
Bret
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Request: Fix class-phpmailer to support SSL connections’ is closed to new replies.