Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29935

With \Mail::send can not set title

$
0
0

In Laravel 6 I send email with \Mail::send (DataGrip in .env) and I recieve the email, can not set title. is is the same as content of the email. I do as :

    $data = array ( // That is not applied
        'title' => 'Title 234',
        'bodyMessage' => $message_text,
        'sender_username' => $name,
        'sender_email' => $email,
        'site_name' => $site_name,
    );

    \Mail::send ( 'emails/contact_us', $data, function ($message) use($data, $donotreply_email, $contact_us_email) {
        $message->from ( $donotreply_email, 'Support of ' . $data['site_name'] );
        $message->to ( $contact_us_email )->subject ( $data['bodyMessage'] );

// $message->title('Message 34 Title'); // If to uncomment it it does not work too. } );

Which is valid way ?

Thanks!


Viewing all articles
Browse latest Browse all 29935

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>