Laravel 5.2 中的 mandrill 验证错误
Validation error in mandrill in Laravel 5.2
我试过 但我没有运气。
.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
如有任何帮助,我们将不胜感激!
谢谢
您可能会错过设置您的 API 键 config/services。php 您会看到这个
'mandrill' => [
'secret' => env('MANDRILL_SECRET'),
],
为 MANDRILL_SECRET 设置一个 ENV var,以便它用于 API 请求
我试过
.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
如有任何帮助,我们将不胜感激! 谢谢
您可能会错过设置您的 API 键 config/services。php 您会看到这个
'mandrill' => [
'secret' => env('MANDRILL_SECRET'),
],
为 MANDRILL_SECRET 设置一个 ENV var,以便它用于 API 请求