why isn't this booking form working.

Please support our ASP advertiser: 50% off 6 Months Dedicated Server Hosting from 1&1!
Reply

Join Date: May 2004
Posts: 104
Reputation: kained is an unknown quantity at this point 
Solved Threads: 0
kained kained is offline Offline
Junior Poster

why isn't this booking form working.

 
0
  #1
Sep 5th, 2005
I know the HTMl and CSS isn't right yet and am not to fussed yet. But the ASP is returning a 405 resource unavilible.

My hosting is with 1&1 and it is turned on.

booking form is here

ASP source code is:

<% @LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>


<%

Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName = "form1"
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "mrvnet.kundenserver.de" ' The mail server you have to use with Asp Mail
Mail.AddRecipient "chabrisloire@aol.com"
Mail.Subject = "Gite Booking"
Mail.BodyText = Request.Form("yourname")
Mail.BodyText = Request.Form("email")
Mail.BodyText = Request.Form("datearrive")
Mail.BodyText = Request.Form("datedepart")
Mail.BodyText = Request.Form("booking")
if Mail.SendMail then
Response.Write "Your mail has already been sent..."
else
Response.Write "Mail send failure. Error was " & Mail.Response
end if
Set Mail = Nothing
%>


</body>

</html>

all help much appeciated
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: why isn't this booking form working.

 
0
  #2
Sep 5th, 2005
First you have to make sure 1&1 support ASP mail. Then chack if the mailserver (the host) is the correct one. Many server use localhost as their mail server.

By the way, your booking page is a htm file, not asp.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 104
Reputation: kained is an unknown quantity at this point 
Solved Threads: 0
kained kained is offline Offline
Junior Poster

Re: why isn't this booking form working.

 
0
  #3
Sep 6th, 2005
mail server is correct and 1&1 support it.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: why isn't this booking form working.

 
0
  #4
Sep 7th, 2005
Did you get "Mail send failure" notice or error message from server?

Did you use it on asp file or the one you show above (htm)?

Try this to include all variables in your mail (your original script will only send the booking data:
Body = Request.Form("yourname")
Body = Body & Request.Form("email")
Body = Body & Request.Form("datearrive")
Body = Body & Request.Form("datedepart")
Body = Body & Request.Form("booking")
Mail.BodyText = Body
.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1
Reputation: carringtonf is an unknown quantity at this point 
Solved Threads: 0
carringtonf carringtonf is offline Offline
Newbie Poster

Re: why isn't this booking form working.

 
0
  #5
May 24th, 2007
I'm resurrecting the above post hoping that the original posters are still around. I am trying to accomplish the same feat with the asp mailer. The Body & solution worked well, but how do I separate values with a carraige return? I have tried a few things, but am completely unsure as to how I format it. Can anyone help so that the email results will show each item on its own separate line?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4426 | Replies: 4
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC