Hello,
I'm trying to do an automated response after some submits a form letting them know that their information has been received. That means I want the "to' portion of the email to be set to the value they enter into a textbox. How do I do this? My code doesn't seem to be working.
Dim mailTo As String = txtEmail.Text
Dim myEmail As MailMessage
myEmail = New MailMessage("information@yahoo.com", mailTo)
myEmail.Subject = "From Cats"
myEmail.IsBodyHtml = True
myEmail.Body = "This is a message from Cats Contact Us Page:"
Dim src As SmtpClient
src = New SmtpClient
src.Send(myEmail)
My web.config has host, from, username, and password set. The from is information@yahoo.com
Sincerely,
Computergyrl
...
Go to the complete details ...