Please, prompt me how to receive EmailMessage in Raw format from class EmailMessage.
I create EmailMessage, fill up all necessary for me fields (and include attachments if needed) and send the message with EmailMessage.Send method.
But before sending I want to store sended message to database. And want to store it in Raw Format. How to do this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please, prompt me how to receive EmailMessage in Raw format from class EmailMessage.
I create EmailMessage, fill up all necessary for me fields (and include attachments if needed) and send the message with EmailMessage.Send method.
But before sending I want to store sended message to database. And want to store it in Raw Format. How to do this?
Hi-
You should be able to call "EmailMessage.ToDataString()", which will render it exactly as the mail servers sees it.
Cheers,
-Mike