前提・実現したいこと
html形式メールになってしまうのを、平文テキスト形式のメールで送信したいです。
使用している emails.reset_password.blade.php は、下記の様にhtmlは含めず、プレーンなbladeになっていて、そのまま3行で出力したいのですが、改行がされない形でメールが送信されてしまいます。
<br>
を含めれば良いのですが、含めない形で実装するにはどのようにしたら良いでしょうか?
(実際にはもっと長いメール文面です。)
php
11. {{ $user->name }} 様 22. 33. {{ config('app.url').'/password/reset/'.$token }}
現状
Laravelでデフォルトの機能を使用しログイン機能及びパスワードリマインダー機能を実装しています。
App\Http\Controllers\Auth\ForgotPassword
で指定されてあるPasswordBrokerのApp\User
で、
php
1 2 /** 3 * Send the password reset notification. 4 * 5 * @param string $token 6 * @return void 7 */ 8 public function sendPasswordResetNotification($token) 9 { 10 /** @var \App\Notifications\ResetPassword $resetPassword */ 11 $resetPassword = new ResetPassword($this, $token); 12 $this->notify($resetPassword); 13 } 14
という形で通知を呼び出しており、 Illuminate\Notifications\Notification
を継承した App\Notifications\ResetPassword
クラスで
php
1 2 /** 3 * Get the mail representation of the notification. 4 * 5 * @param mixed $notifiable 6 * @return \Illuminate\Notifications\Messages\MailMessage 7 */ 8 public function toMail($notifiable) 9 { 10 $subject = config('mail.title'); 11 return (new MailMessage) 12 ->subject($subject) 13 ->view('emails.reset_password', [ 14 'user' => $this->user, 15 'token' => $this->token, 16 ]); 17 }
としています。
平文メールで送るには、
https://readouble.com/laravel/5.5/ja/mail.html
こちらでのメール送信方法に変更する必要があるのでしょうか?
よろしくお願いいたします。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。