Support the ongoing development of Laravel.io →
posted 10 years ago
Mail
Last updated 2 years ago.
0

Hi Yabdab,

You can get Message-ID by following way:

$message_id = "";
Mail::send('emails.mailTemplate', array(), function ($message) use (&$message_id) {
        $message_id = $message->getId(); // This method is used to get Message-ID
        $message->to('[email protected]', 'Nirmal')->subject('Check Message id');
});
echo $message_id;  // [email protected]

posted reply in case someone'll find it useful.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

yabdab yabdab Joined 16 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.