How to use database for mail settings in Laravel

后端 未结 4 831
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 15:51

I\'d like to keep users away from editing configuration files, so I\'ve made web interface in admin panel for setting up Mail server, username, password, port, encryption.. I w

4条回答
  •  不要未来只要你来
    2021-02-06 16:57

    I have added

    $this->app['config']['services'] = [
            'mailgun' => [
                'domain' => $settings->mailgun_domain,
                'secret' => $settings->mailgun_secret,
            ]
            ];   
    

    to CustomTransportManager __construct() to include mailgun API credentials that I'm using as mailing service

提交回复
热议问题