回答編集履歴

2

追記

2018/02/14 11:55

投稿

aro10
aro10

スコア4106

test CHANGED
@@ -5,3 +5,25 @@
5
5
  以下のドキュメントより、ここにはビュー名を指定するので、ビュー名を指定して、$this->options['message']はビューへの引数として渡して下さい。
6
6
 
7
7
  [Laravel 5.5 メール 平文テキストメール](https://readouble.com/laravel/5.5/ja/mail.html#ビューの設定)
8
+
9
+
10
+
11
+ ビューを使わない場合は、Laravel5.3以前の、Mailableを使わないメール送信の方法も検討できます。
12
+
13
+ [Laravel 5.1 メール](https://readouble.com/laravel/5.1/ja/mail.html)
14
+
15
+ ```
16
+
17
+ Route::get('/mail_test', function(){
18
+
19
+ Mail::raw('こんにちは', function ($m){
20
+
21
+ $m->from('hello@example.com', 'Your Application');
22
+
23
+ $m->to("test@example.com", "テストユーザー")->subject('Your Reminder!');
24
+
25
+ });
26
+
27
+ });
28
+
29
+ ```

1

リンク文言微追記

2018/02/14 11:55

投稿

aro10
aro10

スコア4106

test CHANGED
@@ -4,4 +4,4 @@
4
4
 
5
5
  以下のドキュメントより、ここにはビュー名を指定するので、ビュー名を指定して、$this->options['message']はビューへの引数として渡して下さい。
6
6
 
7
- [Laravel 5.5 メール](https://readouble.com/laravel/5.5/ja/mail.html)
7
+ [Laravel 5.5 メール 平文テキストメール](https://readouble.com/laravel/5.5/ja/mail.html#ビューの設定)