mercredi 6 septembre 2017

How to send Plain text body in email in laravel 5.1?

My email is sending properly with subject name, now I dont know how to send email body with simple text. The thing just now I am doing is sending blank email with just a subject name on it. Can anyone help me?

$data = array('title' => 'Forget Password - App', 'content' => 'This is the content of mail body');
           Mail::send(['text' => 'view'],$data, function ($message) {
                $message->from('fromemail@gmail.com', 'Social Team');
                $message->to('randomemail@gmail.com');
                $message->subject('App - Forget Password');
            });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire