正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -31,6 +31,8 @@ class TextMail extends Mailable | @@ -31,6 +31,8 @@ class TextMail extends Mailable | ||
| 31 | */ | 31 | */ |
| 32 | public function build() | 32 | public function build() |
| 33 | { | 33 | { |
| 34 | - return $this->subject($this->subject)->view('mail.text', ['text' => $this->text]); | 34 | + return $this->subject($this->subject)->text('mail.text', ['text' => $this->text]) |
| 35 | + ->view('mail.html', ['text' => $this->text]); // HTML 内容 | ||
| 35 | } | 36 | } |
| 37 | + | ||
| 36 | } | 38 | } |
resources/views/mail/html.blade.php
0 → 100644
-
请 注册 或 登录 后发表评论