【发布时间】:2016-03-23 22:59:34
【问题描述】:
我正在使用 SMTP 邮件服务器。当我注册一个新用户时,我收到以下错误消息:
An error occurred
Could not open socket
Additional information:
Zend\Mail\Protocol\Exception\RuntimeException
File:
C:\wamp\www\zendtest\vendor\zendframework\zend-mail\src\Protocol\AbstractProtocol.php:209
Message:
Could not open socket
代码
<?php
return array(
'mail' => array(
'transport' => array(
'options' => array(
'host' => 'smtp.gmail.com',
'connection_class' => 'login',
'port' => '465',
'connection_config' => array(
'username' => 'varinderkumar.dx@gmail.com',
'password' => '********',
'ssl' => 'ssl'
) ,
) ,
) ,
) ,
);
?>
我该怎么办?
【问题讨论】:
-
您可以删除上面的评论,我在您的问题中包含了您的代码。
标签: email zend-framework procedure