I need to send e-mail from the code behind page of my website and I am still using .Net Framework v1.1.
I need to send the whole content of the page in the body of the e-mail, the same way as when clicking on File, Send, Page by EMail from the browser.
Below is a copy of the code that I am using.
Dim msg As New MailMessage
msg.To = txtTo.Text
msg.From = "info@abc.co.za"
msg.Subject = txtSubject.Text
msg.BodyFormat = MailFormat.Html
msg.Priority = MailPriority.Normal
msg.Body = "Body of page..."
SmtpMail.Send(msg)
Label1.Text = "E-Mail was sent to: ...
Go to the complete details ...