【发布时间】:2014-10-06 10:25:33
【问题描述】:
我在 Laravel 4 中有一个错误:
ErrorException (E_UNKNOWN) fgets(): SSL 读取操作超时
156. * @return string
157. *
158. * @throws Swift_IoException
159. */
160. public function readLine($sequence)
161. {
162. if (isset($this->_out) && !feof($this->_out)) {
163. $line = fgets($this->_out);
164. if (strlen($line) == 0) {
165. $metas = stream_get_meta_data($this->_out);
此错误与 SendGrid 有关。我的 Laravel 设置是默认的:
laravel>app>config>mail.php
<?php
array(
'driver' => 'smtp',
'port' => 465,
'encryption' => 'ssl',
'sendmail' => '/usr/sbin/sendmail -bs',
)
如何解决?
(另见:Laravel.io)
【问题讨论】:
标签: php email ssl laravel swiftmailer