943,911 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 4687
  • ASP RSS
Sep 5th, 2005
0

why isn't this booking form working.

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
kained is offline Offline
126 posts
since May 2004
Sep 5th, 2005
0

Re: why isn't this booking form working.

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.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005
Sep 6th, 2005
0

Re: why isn't this booking form working.

mail server is correct and 1&1 support it.
Reputation Points: 10
Solved Threads: 0
Junior Poster
kained is offline Offline
126 posts
since May 2004
Sep 7th, 2005
0

Re: why isn't this booking form working.

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
.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005
May 24th, 2007
0

Re: why isn't this booking form working.

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
carringtonf is offline Offline
1 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Classic sql update question
Next Thread in ASP Forum Timeline: Using Client(JS) to get Server(VBS) value.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC