Hi guys this is the Asp Code I amd using from a form in oder to send the forms results back to us by email
for some reason we have never recived an email back dunno if I have messed something up in the code could someone look over it for me please
<%@ CodePage=65001 Language="VBScript"%>
<% Dim strFrom, strMember, strMemberID, strGuest, strArrive, StrLeave, StrPayment
'The header/footer for the email.
Const strHeader = "Guest Registration Form Submitted:"
Const strFooter = "Form mailer created by BDB Productions, 2003"
'Who does this go to?
Const strTo = "powerhungry@enbassistant.com"
'From Field
strFrom = Request.form("Email"
'Subject Field
Const strSubject = "Guest Registration Request"
'Member
strMember = Request.form("Member"
'Members ID
strMemberID = Request.form("MemberID"
'Guests
strGuest = Request.form ("Guest"
'Guests Arrive at
strArrive = Request.form("Garr"
'Guest Leaves at
strLeave = Request.form("Gleave"
'Payment
strPayment = Request.form("Payment"
'Redirect
Const strRedirectURL = "
Dim strBody
strBody = strHeader & ( vbCrLf & vbCrLf )
strBody = strBody & ( "FORM submitted at " & Now() & vbCrLf & vbCrLf )
strBody = strBody & ( "Members Name: " & strMember & vbCrLf & vbCrLF )
strBody = strBody & ( "Members ID: " & strMemberID & vbCrLf & vbCrLF )
strBody = StrBody & ( "Guests Name: " & strGuest & vbCrLf & vbCrLF )
strBody = strBody & ( "Time of Arrival: " & strArrive & vbCrLf & vbCrLF )
strBody = strBody & ( "Time of Departure: " & strLeave & vbCrLf & vbCrLF )
strBody = strBody & ( "Payment Method: " & strPayment & vbCrLf & vbCrLF )
strBody = StrBody & strFooter
'Time to send the email
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail"
objCDO.To = strTo
objCDO.From = strFrom
objCDO.Subject = strSubject
objCDO.Body = strBody
objCDO.Send
Set objCDO = Nothing
'Send them to the page specified
Response.Redirect strRedirectURL
%>
for some reason we have never recived an email back dunno if I have messed something up in the code could someone look over it for me please
<%@ CodePage=65001 Language="VBScript"%>
<% Dim strFrom, strMember, strMemberID, strGuest, strArrive, StrLeave, StrPayment
'The header/footer for the email.
Const strHeader = "Guest Registration Form Submitted:"
Const strFooter = "Form mailer created by BDB Productions, 2003"
'Who does this go to?
Const strTo = "powerhungry@enbassistant.com"
'From Field
strFrom = Request.form("Email"
'Subject Field
Const strSubject = "Guest Registration Request"
'Member
strMember = Request.form("Member"
'Members ID
strMemberID = Request.form("MemberID"
'Guests
strGuest = Request.form ("Guest"
'Guests Arrive at
strArrive = Request.form("Garr"
'Guest Leaves at
strLeave = Request.form("Gleave"
'Payment
strPayment = Request.form("Payment"
'Redirect
Const strRedirectURL = "
Dim strBody
strBody = strHeader & ( vbCrLf & vbCrLf )
strBody = strBody & ( "FORM submitted at " & Now() & vbCrLf & vbCrLf )
strBody = strBody & ( "Members Name: " & strMember & vbCrLf & vbCrLF )
strBody = strBody & ( "Members ID: " & strMemberID & vbCrLf & vbCrLF )
strBody = StrBody & ( "Guests Name: " & strGuest & vbCrLf & vbCrLF )
strBody = strBody & ( "Time of Arrival: " & strArrive & vbCrLf & vbCrLF )
strBody = strBody & ( "Time of Departure: " & strLeave & vbCrLf & vbCrLF )
strBody = strBody & ( "Payment Method: " & strPayment & vbCrLf & vbCrLF )
strBody = StrBody & strFooter
'Time to send the email
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail"
objCDO.To = strTo
objCDO.From = strFrom
objCDO.Subject = strSubject
objCDO.Body = strBody
objCDO.Send
Set objCDO = Nothing
'Send them to the page specified
Response.Redirect strRedirectURL
%>