Send Basic Email





0
Date Submitted Tue. Oct. 11th, 2005 9:53 PM
Revision 1 of 1
Helper ses5909
Tags Email | Send | VB.NET
Comments 1 comments
Send Basic Email
Dim myMail As MailMessage = New MailMessage
myMail.From = "from@youremail.com" 'the "from" address     
myMail.To = "to@theiremail.com" '
the "to" address         
myMail.Subject = "Howdy" 'your "subject"
myMail.Body = "Just wanted to say Hi. How are you?"'
message body     
SmtpMail.SmtpServer = "localhost" 'the mailserver

'
send the email
SmtpMail.Send(myMail)

Sara Smith

www.ilovecode.com
Sara

ilovecode

Comments

Comments I know you said "simple"
Thu. Aug. 3rd, 2006 2:02 PM    Newbie jkush

Voting