hi,
I just save document in memorystream(Without using any path)
After i read content using stream reader
then i attach stream reader to body of the mail
Here code is
//code
MemoryStream mhtmlStream = new MemoryStream();
// from aspose.word
doc.Save(mhtmlStream, SaveFormat.Mhtml); //not using any file path
StreamReader reader = new StreamReader(mhtmlStream, System.Text.Encoding.UTF8, true);
mhtmlStream.Position = 0;
MailMessage mail = new MailMessage();
mail.From = new MailAddress("abc@gmail.com");
mail.Body = reader.ReadToEnd();
mail.IsBodyHtml = true;
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com", 587);
SmtpServer.Credentials = new System.Net.NetworkCredential("xyz@gmail.com", "123456");
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
this is my code... My word document contains single table with data's...
I just convert word to html
then send to the body of the mail
Now plain text only showing instead of table using html text...
how to avoid this...
Pls Help me