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('nirmal@example.com', 'Nirmal')->subject('Check Message id');
});
echo $message_id; // 9910feafbb7fd7ad64c3b8d82627288b@example.com
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.