Moved ADMIN_MAIL_TO into mail config
This commit is contained in:
parent
3cbbbbe340
commit
54babf9079
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue