I'm using Web devloper Express 2010 and VB.net to create a small application, I have successfully create the procedures and also the code fro sending the email. So now I want to format it into a nice looking email, rather than the bare bones I have just now.
I have created a formatted HTML document for the email and will need to pass some values into from strings that I will have defined.
What is the best way to do this ?
Protected Sub SendMailResource(ByVal strEmailAddress As String)
Dim mail As New MailMessage()
'set the addresses
mail.From = New MailAddress("firstname.lastname@example.org")
'set the content
mail.Subject = "Task Awaiting"
mail.Body = "This is a test, for sending an email automatically to a resource"
mail.IsBodyHtml = True
'send the message
Dim smtp As New SmtpClient("server1")