Moved ADMIN_MAIL_TO into mail config

This commit is contained in:
Matt April 2019-10-26 11:07:41 -04:00
parent 3cbbbbe340
commit 54babf9079
3 changed files with 16 additions and 2 deletions

View File

@ -60,6 +60,20 @@ return [
'name' => env('MAIL_FROM_NAME')
],
/*
|--------------------------------------------------------------------------
| Global "Admin" Address
|--------------------------------------------------------------------------
|
| General admin related admins, such as order notifications.
|
*/
'admin' => [
'address' => env('ADMIN_MAIL_TO'),
'name' => env('ADMIN_MAIL_NAME', 'Admin')
],
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol

View File

@ -42,7 +42,7 @@ class NewAdminNotification extends Mailable
*/
public function build()
{
return $this->to(env('ADMIN_MAIL_TO'))
return $this->to(config('mail.admin.address'))
->subject(trans('shop::app.mail.order.subject'))
->view('shop::emails.sales.new-admin-order');
}

View File

@ -185,7 +185,7 @@
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!!
__('shop::app.mail.order.help', [
'support_email' => '<a style="color:#0041FF" href="mailto:' . env('ADMIN_MAIL_TO') . '">' . env('ADMIN_MAIL_TO'). '</a>'
'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.admin.address') . '">' . config('mail.admin.address') . '</a>'
])
!!}
</p>