Open hiralmavani opened 2 years ago
In theory, it should work like you showed it.
You get the error from the getMail()
function call, right?
Can you please do a try-catch and check, if you get further information there?
try {
$mail = $mailMailbox->getMail(
$recentMailId,
true
);
} catch (UnexpectedValueException $e) {
print_r($e->getMessage());
}
I need to get header information using below function :
I have 2 mail with body content like : abcd1234
I need to get header information of letest mail contan abcd1234 content.
Here I did not get result. As I also got proper value $recentMailId = 990 Got below error : Next UnexpectedValueException: Could not fetch message header from mailbox! Can you please help me out