0
的Gmail我有一个问题发送电子邮件发送邮件laravel5与当地
我在Laravel
下面的代码文件mail.php
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('smtp.gmail.com'),
'port' => env('MAIL_PORT', 465),
'from' => ['address' => '[email protected]', 'name' => 'Kiko'],
'encryption' => 'ssl',
'username' => env('[email protected]'),
'password' => env(''),
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
];
登录
[2015-05-29 13:27:48] local.DEBUG: Message-ID: <[email protected]>
Date: Fri, 29 May 2015 13:27:48 +0000
Subject: Welcome to My Website
From: Kiko <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
而.env
MAIL_DRIVER=log
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME='[email protected]'
MAIL_PASSWORD=''
如果.ENV我改变.LOG到SMPT日志返回该消息
Maximum execution time of 30 seconds exceeded
[2015-05-29 13:40:40] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Maximum execution time of 30 seconds exceeded' in C:\xampp3\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:53
Stack trace:
#0 {main}
任何人都可能帮我看看错误的文件?
您是否在Gmail控制面板中启用了“安全性较低的应用程序”?如果你不这样做,你不能通过smtp连接到你的Gmail账户。 – shaddy
是的,我在我的面板中激活了这个选项,我也遇到同样的问题。 – jc1992