This project is read-only.

Save Mail Message to Draft folder

Jul 7, 2013 at 9:23 AM
hi All

i was trying to save mail message to draft folder in server. I create the mail message using db values. So please someone help me to save this mail message to Draft folder.
Jul 7, 2013 at 8:06 PM
Hi tharush,

to store a message in the draft folder, simply call the AppendMessage method on the draft folder:
draftsFolder.AppendMessage(myMessage, "");
If you experience any issues, please let me know.

Best regards,

Pavel Azanov
Sep 19, 2013 at 3:18 AM
Hi pavel_azanov,

This is my code..

Folder toFolder = gmailFolders["Drafts"];
bool s = toFolder.AppendMessage(msgToUpload,ImapFlags.DRAFT);

this is not work properly...
Sep 19, 2013 at 12:38 PM
Hi tharush,

currently there are reported bugs on AppendMessage with messages which contain attachments. If you experience other kind of issue, please provide more details. You can also try the latest code from the repository, it contains some updates.

Kind regards,