Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

NSF to MSG Conversion

$
0
0
Hello,
We are craeting MSG Files from NSF database, So at the time of creating MSG every part of the email is working fine except the date. and also the MSG which is created is opening in editable mode.

// Create an instance of the Aspose.Email.MailMessage class
                       MailMessage msg = new MailMessage();
                       // Set recipients information
                        msg.To = doc.GetItemValue("sendto")[0];
                        msg.From = doc.GetItemValue("from")[0];
                        msg.Date = doc.GetItemValue("PostedDate")[0];

                        // Set the subject
                       
                        msg.Subject = doc.GetItemValue("subject")[0];
                   
                        // Set HTML body
                        msg.HtmlBody = nMime.ContentAsText.ToString();
                   
                          msg.Save(global_var.msg_eml_path + sba.ToString() + @"\" + i + ".msg",    SaveOptions.DefaultMsgUnicode);
                    
Thanks & regards
Mantu Malakar         
                

Viewing all articles
Browse latest Browse all 1367

Trending Articles