blue-twilight/app/Mail/TestMailConfig.php

36 lines
770 B
PHP
Raw Normal View History

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class TestMailConfig extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->from(UserConfig::get('sender_address'), UserConfig::get('sender_name'))
->subject(trans('email.test_email_subject', ['app_name' => UserConfig::get('app_name')]))
->view(Theme::viewName('email.test_email'));
}
}