Commit 866ebd9f authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 98a45feb
......@@ -46,7 +46,7 @@ class MailService{
public function registerProvider($config)
{
app('config')->set(['mail' => $config]);
//$mailerServiceProvider = app(MailerServiceProvider::class);
$mailerServiceProvider = app(MailerServiceProvider::class);
//$mailerServiceProvider->setMailerPlatform('rhawn');
app()->register(MailServiceProvider::class);
}
......@@ -63,6 +63,10 @@ class MailService{
public function sendMailToHtml($title, $toUser, $message)
{
$this->mailer->html('emails.invoice',['message'=> $message]);
$this->mailer->send('emails.invoice',['message'=> $message],function($mail) use ($toUser, $title){
$mail->to($toUser);
$mail->subject($title);
});
}
}
\ No newline at end of file
<body>
Here is an image from raw data:
</body>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment