Hello I am having trouble with my email funtion in asp. I can get it to email if i hard code the address into the coding. However I want to use a email address that a user submits into a form and when the submit button is clicked then it emails the user with some text verifying there order was submitted. Here is the code:
Dim MyMail
MyMail = CreateObject("CDO.Message")
MyMail.Subject = "Work Order Reciept"
MyMail.From = "infosystems@dhiusa.com"
MyMail.To = "" <-------------This is where I want there email to automatically go after the user has typed it and when the submit button is clicked
MyMail.Cc = "jonathon_amnah@dhiusa.com"
MyMail.TextBody = "Your Issue has been received. It has been assigned to Randy Haines. Please do not reply to this E-Mail. Thank you"
MyMail.Send()
MyMail = Nothing
If this is even possible please let me know asap
Thanks

asp email funtion
Thanh
MyMail.To = txtUserInput.Text
' Change txtUserInput to the name of the server control the user typed it into.
Heem
The best place to ask ASP.NET related question is over on the ASP.NET forums at http://www.asp.net.
CodeCanvas
I changed it but im not sure what the server control is. I am new to programming and i just started learning asp three weeks ago and I have accomplished most of what I have been working on for my company except for this part. I think this is the server control:
<asp:TextBox ID="E_mailTextBox" runat="server" Text='<%# Bind("[E-mail]") %>' OnTextChanged="E_mailTextBox_TextChanged"></asp:TextBox><br />and if you could give me an example of how it is written in the VB script I would appreciate it.