Hello Everyone!
I hope someone can help me. I am not to familiar with .ASP so that's why i am askng here. I am trying to format values from a form into an email message with .asp her is my form info:
<form name="form1" method="post" action="send.asp">
<p align="right"><strong>Name:<input type="text" name="name">
<br>
Address:<input type="text" name="address">
<br>
City, State,Zip:<input type="text" name="citystatezip">
<br>
Email Address:<input type="text" name="email">
</strong></p>
<p align="center"><strong> <br>
</strong><strong> Enter your Message to us here:<br>
<textarea name="message" cols="50"></textarea>
</strong></p>
<p align="center"><strong>
<input type="submit" name="Submit" value="Submit">
</strong></p>
</form>[/black]
and here is the asp to format it:
<%
Dim strBody
strSubject = "Form Submission"
strBody = strBody & "============================================= " & vbCrLf
strBody = strBody & "Website Comments" & vbCrLf
strBody = strBody & "============================================= " & vbCrLf & vbCrLf
strBody = strBody & "Web Users Information:" & vbCrLf
strBody = strBody & "Name: " & Request.Form("name") & vbCrLf
strBody = strBody & "E-mail: " & Request.Form("address") & vbCrLf
strBody = strBody & "Address: " & Request.Form("citystatezip") & vbCrLf
strBody = strBody & "City: " & Request.Form("email") & vbCrLf
strBody = strBody & "Web Visitors Inquiry:" & vbCrLf
strBody = strBody & Request.Form("message") & vbCrLf
strBody = strBody & "End of users comments." & vbCrLf & vbCrLf
strBody = strBody & "============================================= " & vbCrLf
strBody = strBody & "End of E-mail" & vbCrLf
strBody = strBody & "============================================= " & vbCrLf
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = Request.Form("Email")
objMail.To = "
[email protected]"
objMail.Subject = strSubject
objMail.Body = strBody
objMail.Send
Set objMail = Nothing
Now, i do a "response.write(strbody)" and I get the proper values, but for some reason i am not getting the emails. am i doing something wrong?
thanks for your help!
Matt