C#使用.docx文本内容发送Windows Mail

C#使用.docx文本内容发送Windows Mail,c#,C#,我需要获取.docx格式的文本,然后准备在windows Mail应用程序中发送它(不使用stmp发送,只需打开windows Mail并将文本粘贴到正文中即可) 我已尝试使用Microsoft.Office.Interop.Word复制粘贴它,但文本未格式化。 这是我发送邮件/获取Word内容的代码: 谢谢你的帮助 Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.A

我需要获取.docx格式的文本,然后准备在windows Mail应用程序中发送它(不使用stmp发送,只需打开windows Mail并将文本粘贴到正文中即可)

我已尝试使用Microsoft.Office.Interop.Word复制粘贴它,但文本未格式化。 这是我发送邮件/获取Word内容的代码:

谢谢你的帮助

       Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
            Microsoft.Office.Interop.Word.Document doc = app.Documents.Open(fileName);

            string allWords = doc.Content.Text;
            doc.Close();
            app.Quit();

            string mailto = string.Format("mailto:{0}?Subject={1}&Body={2}", destinataire.Text, objet.Text, allWords);
            mailto = Uri.EscapeUriString(mailto);
            System.Diagnostics.Process.Start(mailto);