Sending mail with attachment
-
Is it possible to create a word document on the fly and send as attachment with a email using SmtpClient? Incase it is possible, do we need to have MS word installed on the machine where the mail send utility is running. Thanks in advance.
- ashish
-
Is it possible to create a word document on the fly and send as attachment with a email using SmtpClient? Incase it is possible, do we need to have MS word installed on the machine where the mail send utility is running. Thanks in advance.
- ashish
Hi, We can create word documents on the fly C# or VB.Net by using Interop.Microsoft.Office.Core and Interop.Word references .NET internally using com Interoperability. Once the document is being created that can be attached through a mail. Refer the following URL to create word document. For Word Document http://msdn2.microsoft.com/en-us/library/78whx7s6.aspx For Email http://www.systemwebmail.com/faq/2.3.aspx Ram