'Unable to extract Unique Identity for Emails sent from Safaricom Internal Mails ie Message ID (PHP IMAP)

I am having a challenge,I am unable to extract a unique field from emails sent directly from Safaricom Internal Mails to our Customer Service Mailbox.

All other mails received from different senders have the unique field: Message ID - As seen below;

From: John Doe <[email protected]>
Message-ID: <[email protected]>
Subject: Test Mail'

However, mails sent from Safaricom external emails ie [email protected] have the unique identifier Message ID.

I am using PHP Laravel Imap.

I would like to know if there's an extra unique field that identifies unique emails. Or if there's a way to obtain the Message ID.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source