cbrundage
01-24-2011, 06:16 PM
I have tried using an asp test form emailed to me by 1&1 which doesn't work - after about 10 emails and phone calls I am giving up. No one there has a clue, in fact, one tech support person didn't know what asp was! Could someone tell me if I have it configured right below? Here is the test page (my email with 1&1 is christina@NOSPAMcbrundage.net. The error I get is "page cannot be displayed". If I can get this test page to work, I can then go on to get my form configured. Many thanks for any help - this is for a nonprofit cat shelter's application form and the cats will be grateful too!
<% @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 = "Christina"
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "mrelay.perfora.net" ' The mail server you have to use with Asp Mail
Mail.AddRecipient "christina@cbrundage.net"
Mail.Subject = "Website - Info Request"
Mail.BodyText = Request.Form("Info")
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>
The html page they sent also comes up fine and the pertinent line is
<form onSubmit="return ValidateForm()" name="form1" method="post" action="forminfo.asp">
<% @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 = "Christina"
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "mrelay.perfora.net" ' The mail server you have to use with Asp Mail
Mail.AddRecipient "christina@cbrundage.net"
Mail.Subject = "Website - Info Request"
Mail.BodyText = Request.Form("Info")
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>
The html page they sent also comes up fine and the pertinent line is
<form onSubmit="return ValidateForm()" name="form1" method="post" action="forminfo.asp">