Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Answered: How to create mail message draft

$
0
0

You can make the message read-write by setting the X-Unsent flag into the message headers:

var msg = new MailMessage();
msg.Subject = "Subject";
msg.Headers.Add("X-Unsent", "1");  // <-- that's it
msg.BodyHtml = "Mail body...";

It should work both for .EML and .MSG message formats.


Viewing all articles
Browse latest Browse all 3862

Trending Articles