tehon3299
Centurion
I am using the following code:
This works perfect but I would like to now use the email address from an ASP textbox instead of hard coding it. How can I do this??
Thanks
Visual Basic:
Sub Page_Load(sender as object, e as eventargs)
Dim from As String = "tehonica@oswego.edu"
Dim mailto As String = Session("email")
Dim subject As String = "Tehon.Net Account Confirmation"
Dim body As String = "Thank you for registering with [url]http://www.Tehon.Net[/url]"
SmtpMail.SmtpServer = "mail.oswego.edu"
SmtpMail.Send(from, mailto, subject, body)
End Sub
This works perfect but I would like to now use the email address from an ASP textbox instead of hard coding it. How can I do this??
Thanks