New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Last Message ID always Empty #2936
Comments
(ignore earlier response - I answered a different question!) |
First of all; the uniqueid is for the internal MIME boundary purposes, it had nothing to do with the last message id you want to get. So, please disregard that route! That said; a second route is to use the transaction id! |
When I enable $mail->SMTPDebug = 4, Its always showing me like
But when I var_dump($mail) Message ID getting empty. Even I check in Gmail Show Original, Its there but I am not getting it with any method. I have tried $mail->getSMTPInstance()->getLastTransactionID() but its also empty. Thanks! |
I have also marked that
so if I can retrieve uniqueid , I can join and use it as Message ID ? If Yes, Please give me the way to retrieve uniqueid From $mail. Thanks! |
I am trying to get last message id from PHPMailer when its send email. My Code is looks like
When I echo $mail->getLastMessageID() its always empty but when I var_dump($mail) I have array like below.
Here uniqueid at the last is same like message id which I want. But since its protected object, I am not able to retrieve it. Let me know if anyone here can help me for solve the issue. Thanks!
The text was updated successfully, but these errors were encountered: