I have tried to use the Upload(string folder, IMail email) method of Mail.dll Imap client, but i receive always this error from server:
Limilabs.Client.IMAP.ImapResponseException : [TRYCREATE] Folder doesn't exist. (Failure)
My test code is this:
using (Imap imapClient = new Imap())
{
imapClient.ConnectSSL("imap.gmail.com");
imapClient.UseBestLogin("user@gmail.com", "password");
imapClient.UploadMessage(@"[Gmail]\Sent Mail", eml);
imapClient.Close();
}
What am i doing wrong?