ANOTHER .NET email function

tehon3299

Centurion
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
How could I read from an SQL Table and insert that data into the BODY string of the following code:
Visual Basic:
				Dim from As String = txtFrom.Text
				Dim mailto As String = "tehonica@oswego.edu"
				Dim subject As String = "Tehon.Net Inquiry"
				Dim body As String = txtMessage.Text
				SmtpMail.SmtpServer = "mail.oswego.edu"
				SmtpMail.Send(from, mailto, subject, body)

Thanks
 
Back
Top