Sushama phalake
Sushama phalake

Reputation: 29

Write .msg file where input is mime Contents using chilkatDotNet.dll

I had mime contents of mail from gmail and now i want to create .msg file using chilkat and store that contents to .msg file. How could i do that using chilkat any idea.

MsgFilePath = System.IO.Path.Combine(Path, msgFileName + ".msg");
string mimeFile = System.Text.Encoding.ASCII.GetString(mail.MIMEContent);
           success = ObjEmail.SetFromMimeText(mimeFile);           
            if (success)
            {
                byte[] mimeContents = ObjEmail.GetMimeBinary();
                File.WriteAllBytes(MsgFilePath, mimeContents);
            }

Upvotes: 0

Views: 235

Answers (0)

Related Questions