Får ett felmess när jag ska använda ett mailscript.
Method Not Allowed
The requested method POST is not allowed for the URL /mutantsidan/tomail.asp.------------------------------------------------------------------------------
Apache/1.3.28 Server at inget.inget.com Port 80
Här är själva mailscriptet:
<%
Dim name, mail, subject, msg
name = request.form("yourname")
mail = request.form("yourmail")
subject = request.form("subject")
msg = request.form("message")
For Each x In Request.Form
message = message & x & ": " & Request.Form(x) & CHR(10)
Next
set smtp=Server.CreateObject("Bamboo.SMTP")
smtp.Server="www.hotmail.com"
smtp.Rcpt="oOoOoOoOo@hotmail.com"
smtp.From = mail
smtp.FromName = name
smtp.Subject = subject
smtp.Message = msg
on error resume next
smtp.Send
if err then
response.Write err.Description
end if
set smtp = Nothing
response.redirect("sent.asp")
%>
Och formuläret:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Kontakta oss </TITLE>
</HEAD>
<BODY>
<FORM ACTION="tomail.asp" METHOD=post>
<input type="text" name="yourname"><BR>
<input type="text" name="yourmail"><BR>
<input type="text" name="subject"><BR>
<textarea name="message"></textarea><BR>
<INPUT TYPE=submit value="Submit">
</FORM>
</body>
</html>
Någon buffer eller liknande som behöver tas bort?
Jag kör Apache på Win XP.
Tacksam för svar! :bire