vbnet Send an email

Dim myMail As New MailMessage(UsersEmail.Text, ToAddress)

myMail.Subject = "This is the subject"
myMail.Body = "<p>This is the email body</p>"
myMail.IsBodyHtml = True

Dim smtp As New SmtpClient


'web.config settings:
			'<network host="mail.slickhouse.com" port="21" userName="myUser" password="myPassword" />
Sending an Email using System.Net.Mail

Updated: Saturday 9th October 2010, 03:43pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.