2017-02-28 79 views
4

的代碼,我使用:山魈到Laravel不工作

.ENV

APP_ENV=production 
APP_DEBUG=true 
APP_KEY=*************** 
CACHE_DRIVER=file 
SESSION_DRIVER=file 
QUEUE_DRIVER=sync 
MAIL_DRIVER=mandrill 
MANDRILL_SECRET=RVk7Ef8CRD-****** 
MAIL_HOST=smtp.mandrillapp.com 
MAIL_USERNAME=************* 
MAIL_PASSWORD=**************  
MAIL_ENCRYPTION=ssl 
MAIL_PORT=465 

mail.php

<?php 

return [ 
    'driver' => env('MAIL_DRIVER', 'mandrill'), 
    'host' => env('MAIL_HOST', 'smtp.mandrillapp.com'), 
    'port' => env('MAIL_PORT', 465), 
    'from' => ['address' => '[email protected]', 'name' => 'ParkogAnlegg Digital Magazine'], 
    'encryption'=> env('MAIL_ENCRYPTION', 'ssl'), 
    'username' => env('MAIL_USERNAME'), 
    'password' => env('MAIL_PASSWORD'), 
    'sendmail' => '/usr/sbin/sendmail -bs', 
    'pretend' => false, 

]; 

services.php

<?php 

return [ 

    'mailgun' => [ 
     'domain' => env('MAILGUN_DOMAIN'), 
     'secret' => env('MAILGUN_SECRET'), 
    ], 

    'mandrill' => [ 
     'secret' => env('MANDRILL_SECRET')//zGvUgEUh9E6L2dyN7x7NDg 
    ], 

    'ses' => [ 
     'key' => env('SES_KEY'), 
     'secret' => env('SES_SECRET'), 
     'region' => 'us-east-1', 
    ], 

    'stripe' => [ 
     'model' => App\User::class, 
     'key' => env('STRIPE_KEY'), 
     'secret' => env('STRIPE_SECRET'), 
    ], 

]; 

我沒有收到錯誤消息或將電子郵件傳遞到我的系統的消息。

我有相同的一套配置到另一個應用程序,它在工作。但是當我將相同的代碼遷移到這個應用程序中時,它不在這裏工作。

任何幫助,將不勝感激! 感謝

+0

停止使用山魈x_D – elboletaire

回答

1

你可能會錯過在config/services.php文件工作

'mandrill' => [ 
    'secret' => env('MANDRILL_SECRET') 
],