How te get Original message (technical mail message header)

How to get original mail message headers via command? I try to get mal message ID via MailMessage.Headers(“UID”), but that’s not what I need. In technical header MailMessage look like this:
message-id: <42tethavjtui5635r32rgreevege.localhost.localdomain>
I found how to do this in C#:
But no such property in VB.
Can who faced this problem?

Maybe I can somehow get all the technical information? That would be the solution to my problem.

OK, I solved the problem.
MailMessage.Headers(“Message-ID”) - this way I get the string I need.
Maybe someone knows how to get all the headers at once?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.