At the end of the same article, there is an example on saving the msg file in draft mode. This example uses an existing msg file. But you can create a new msg file instead. The sample code would be:
// create instance of type MapiMessage from MailMessage MapiMessage mapiMsg = MapiMessage.FromMailMessage(msg); // set message flag to un-sent (draft status) mapiMsg.SetMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT); // save it mapiMsg.Save(strMsg);
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.