@@ -43,6 +43,11 @@ public static function createHtml($email, $subject, $html, $emailUserName = null
4343 app ('Illuminate\Contracts\Bus\Dispatcher ' )->dispatch ($ job );
4444 }
4545
46+ public static function createModule ($ module , $ template , $ email , $ subject , $ templateData = [], $ emailUserName = null , $ option = [], $ delay = 0 )
47+ {
48+ self ::create ($ email , $ subject , $ template , $ templateData , $ emailUserName , $ option , $ delay , $ module );
49+ }
50+
4651 public static function create ($ email , $ subject , $ template , $ templateData = [], $ emailUserName = null , $ option = [], $ delay = 0 , $ module = null )
4752 {
4853 self ::checkConfig ();
@@ -65,7 +70,7 @@ public function handle()
6570 $ provider = app ()->config ->get ('EmailSenderProvider ' );
6671
6772 $ instance = MailSenderProvider::get ($ provider );
68- Logger::info ('Email ' , 'Start ' , $ this ->email . ' -> ' . $ this ->subject . ' -> ' . $ this ->template );
73+ Logger::info ('Email ' , 'Start ' , $ this ->email . ' - ' . $ this ->subject . ' - ' . $ this ->template );
6974
7075 switch ($ this ->type ) {
7176 case 'html ' :
@@ -99,6 +104,6 @@ public function handle()
99104 BizException::throwsIfEmpty ('MailSendJob.HtmlEmpty ' , $ html );
100105 $ ret = $ instance ->send ($ this ->email , $ this ->emailUserName , $ this ->subject , $ html );
101106 BizException::throwsIfResponseError ($ ret );
102- Logger::info ('Email ' , 'End ' , $ this ->email . ' -> ' . $ this ->subject );
107+ Logger::info ('Email ' , 'End ' , $ this ->email . ' - ' . $ this ->subject );
103108 }
104109}
0 commit comments