回答編集履歴
2
追記
answer
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
public function build()
|
2
2
|
で使用している、->text($this->options['message']);の記述に認識間違いがあります。
|
3
3
|
以下のドキュメントより、ここにはビュー名を指定するので、ビュー名を指定して、$this->options['message']はビューへの引数として渡して下さい。
|
4
|
-
[Laravel 5.5 メール 平文テキストメール](https://readouble.com/laravel/5.5/ja/mail.html#ビューの設定)
|
4
|
+
[Laravel 5.5 メール 平文テキストメール](https://readouble.com/laravel/5.5/ja/mail.html#ビューの設定)
|
5
|
+
|
6
|
+
ビューを使わない場合は、Laravel5.3以前の、Mailableを使わないメール送信の方法も検討できます。
|
7
|
+
[Laravel 5.1 メール](https://readouble.com/laravel/5.1/ja/mail.html)
|
8
|
+
```
|
9
|
+
Route::get('/mail_test', function(){
|
10
|
+
Mail::raw('こんにちは', function ($m){
|
11
|
+
$m->from('hello@example.com', 'Your Application');
|
12
|
+
$m->to("test@example.com", "テストユーザー")->subject('Your Reminder!');
|
13
|
+
});
|
14
|
+
});
|
15
|
+
```
|
1
リンク文言微追記
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
public function build()
|
2
2
|
で使用している、->text($this->options['message']);の記述に認識間違いがあります。
|
3
3
|
以下のドキュメントより、ここにはビュー名を指定するので、ビュー名を指定して、$this->options['message']はビューへの引数として渡して下さい。
|
4
|
-
[Laravel 5.5 メール](https://readouble.com/laravel/5.5/ja/mail.html)
|
4
|
+
[Laravel 5.5 メール 平文テキストメール](https://readouble.com/laravel/5.5/ja/mail.html#ビューの設定)
|