We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Why MessageID is empty after sending?


After sending MailMessage like:

mailMessage.MessageId is still empty.
How can i get MessageId ?

I appreciate your help.

Hi Maxim,

Thank you for using Aspose.Email.

MessageId is not something generated by Aspose.Email but is always generated by the sending server that sends out the email. However,the MESSAGE-ID field is considered optional and how the MESSAGE-ID field is created is up to the server as per rfc 2822. For example, when I use the Aspose smtp client to send out an email, the MessageId is always there at the receiving end with the message. I hope this clarifies this functionality.

Hi Kashif,

Thank you for your help.

Is there any way to get Message ID on Sender end after sening?
I’m using Aspose smtp client to send out an email, and after sending I have to know Message ID.
Is it possible?

Hi Maxim,

I am afraid but there is no such method to get the message ID on sender end as the message is sent by the server machine and not the local machine. You can also check this by sending a message from your outlook and you will observe that the internet headers are empty for the sent messages.

Thank you for your help, Kashif

Hi Maxim,

You are welcome and please let us know if we can be of any additional help to you regarding any query/inquiry related to Aspose.Email.