我尝试过this,但我没有运气。
.env文件:
APP_ENV=production
APP_DEBUG=true
APP_KEY=****
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=mandrill
MANDRILL_SECRET=**********
MAIL_HOST=smtp.mandrillapp.com
MAIL_USERNAME=user_name
MAIL_PASSWORD=*****
MAIL_ENCRYPTION=ssl
MAIL_PORT=465
mail.php
return [
'driver' => env('MAIL_DRIVER', 'mandrill'),
'host' => env('MAIL_HOST', 'smtp.mandrillapp.com'),
'port' => env('MAIL_PORT', 465),
'from' => ['address' => 'rnytt1@mediadigital.no', 'name' => 'Digital Magazine'],
'encryption'=> env('MAIL_ENCRYPTION', 'ssl'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
];
services.php
'mandrill' => [
'secret' => env('secret_key')//zGvUgEUh9E6L2dyN7x7NDg
],
错误:
我可以查看我的error
任何帮助将不胜感激! 感谢
答案 0 :(得分:2)
您可能会错过将API密钥设置为config / services.php,您将看到此
'mandrill' => [
'secret' => env('MANDRILL_SECRET'),
],
为MANDRILL_SECRET设置ENV var,以便将其用于API请求