Try something like this:
Code:
<%
For Each Item In Request.Form
strMessage = strMessage & Item & ": " & Request.Form( Item ) & Chr(10)
Next
Set objMail = Server.CreateObject( "Bamboo.SMTP" )
objMail.Server = "mail.mysite.com"
objMail.Rcpt = "admin@mysite.com"
objMail.From = "admin@mysite.com"
objMail.FromName = Request.ServerVariables( "HTTP_REFERER" )
objMail.Subject = "Your web form - " & Request.ServerVariables( "HTTP_REFERER" )
objMail.Message = strMessage
On Error Resume Next
objMail.Send
Set objMail = Nothing : objMail = Empty
If Err Then Response.Redirect( "error.html" )
If Not Err Then Response.Redirect( "success.html" )
%>
Bookmarks