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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community