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 smtp.Send(myMail) 'web.config settings: '<system.net> '<mailSettings> '<smtp> '<network host="mail.slickhouse.com" port="21" userName="myUser" password="myPassword" /> '</smtp> '</mailSettings> '</system.net>
Updated: Saturday 9th October 2010, 01:35pm
There are 0 comments
Comments are currently closed.