Text box to from address in contact form
-
Hey all, I would like to know what is the best way of doing this. I just need the user to enter in some information, including their email address, and let the user's email that they enter in the text box be the address that the smtp function uses to send the message. This form is on our intranet, so it accesses our internal smtp server, which does not require authentication. I have some code that I think might work, but not sure what I should have set in my web.config to allow for something like this. Any help would be great. Thanks!
-
Hey all, I would like to know what is the best way of doing this. I just need the user to enter in some information, including their email address, and let the user's email that they enter in the text box be the address that the smtp function uses to send the message. This form is on our intranet, so it accesses our internal smtp server, which does not require authentication. I have some code that I think might work, but not sure what I should have set in my web.config to allow for something like this. Any help would be great. Thanks!
There is nothing you really need to set in your web.cofig that I can think of. MailMessage.To = UserEmail.Text
only two letters away from being an asset
-
There is nothing you really need to set in your web.cofig that I can think of. MailMessage.To = UserEmail.Text
only two letters away from being an asset
I had tried that line before, but got an error about the property 'to' being read only. I eventually got it to work using this:
Dim Email As New System.Net.Mail.MailMessage( _ txtEmail.Text, "test@test.com")
Thanks for your help!