Kamaraj

Hi

How to send the active HTML file as a attachment when click the Submit button

with regards

Kamaraj.v

India, Chennai

kamaraj@insoft.com



Re: Internet Explorer Web Development Send mail with HTML Submit

Uma Ramiya

Dim Message As MailMessage = New MailMessage()

Dim Contents As String = ""

Message.From = New MailAddress("administrator@address.com")

Message.To.Add(New MailAddress("umaramiya@hotmail.com"))

Message.CC.Add(New MailAddress("umaramiya@gmail.com"))

Message.Subject = "Hello"

Contents = "This is my first try"

Contents = Contents + "\n" + "\n" + "Thanks U"

Message.Body = Contents

Message.Attachments.Add(New Attachment("D:\Test.html"))

Dim Client As New SmtpClient

Client.Host = "localhost"

Client.Send(Message)