Submit_form

I’ve created an asp submit_form. but the thing is, it doesn’t always work. why not? I’ve tested it a couple of times, and sometimes I receive the email, and sometimes not. Can you help me?

lol :stuck_out_tongue: You might wanna throw some code at us since nobody has any idea how you made it…

You asked for it: … :ne: Not sure if you can make anything out?

sorry, but I don’t really know what’s going on here… I’m a beginner and very confused!:puzzled:

<html>

<head>
<meta http-equiv=“Content-Language” content=“en-us”>
<meta http-equiv=“Content-Type” content=“text/html; charset=windows-1252”>
<meta name=“GENERATOR” content=“Microsoft FrontPage 4.0”>
<meta name=“ProgId” content=“FrontPage.Editor.Document”>
<title>breath_of_God</title>
<meta name=“Microsoft Border” content=“b”>
</head>

<body bgcolor="#000000" background=“images/submit_back.jpg”>
<!–msnavigation–>
<table width=“697” height=“604” border=“0” cellpadding=“0” cellspacing=“0” dir=“ltr”>
<tr><!–msnavigation–>
<td width=“697” height=“604” valign=“top”>
<!–webbot bot=“HTMLMarkup” startspan alt="(Send Auto Email)" -->
<%
Dim Mailer

session(“name”) = request.form(“name”)
session(“email”) = request.form(“email”)
session(“tel”) = request.form(“tel”)
session(“address”) = request.form(“address”)
session(“partners”) = request.form(“partners”)
session(“kids”) = request.form(“kids”)
session(“music”) = request.form(“music”)
session(“theatre”) = request.form(“theatre”)
session(“dance”) = request.form(“dance”)
session(“sats”) = request.form(“sats”)

HTML = HTML & “<head>”
HTML = HTML & “<title>Visitor Submission</title>”
HTML = HTML & “</head>”
HTML = HTML & “<body>”
HTML = HTML & "<p>Visitor Name: " & Session(“name”) & “</p>”
HTML = HTML & "<p>Visitor E-Mail: " & Session(“email”) & “</p>”
HTML = HTML & "<p>Visitor Tel No: " & Session(“tel”) & “</p>”
HTML = HTML & "<p>Visitor Address: " & Session(“address”) & “</p>”
HTML = HTML & “<p>Interrested In: <br>” & Session(“partners”) & “<br>” & Session(“kids”) & “<br>” & Session(“music”) & “<br>” & Session(“theatre”) & “<br>” & Session(“dance”) & “<br>” & Session(“sats”) & “</p>”
HTML = HTML & “</body>”

Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”)

Mailer.FromName = “Pneumatix Server”
Mailer.FromAddress = session(“email”)
Mailer.RemoteHost = “196.25.120.48”
Mailer.AddRecipient “info”, “[email protected]
Mailer.Subject = “Visitor Detail”
Mailer.ReturnReceipt = false
Mailer.ConfirmRead = false
mailer.ContentType = “text/html”
Mailer.BodyText = HTML
Mailer.Priority = 0
Mailer.Urgent = true
Mailer.SendMail
Mailer.ClearAllRecipients
Mailer.ClearAttachments
Mailer.ClearBCCs
Mailer.ClearBodyText
Mailer.ClearCCs
Mailer.ClearExtraHeaders
Mailer.ClearRecipients
%>
<!–webbot bot=“HTMLMarkup” endspan -->
<table width=“645” height=“365” border=“0” cellpadding=“0” cellspacing=“0”>
<tr>
<td width=“645” height=“365” valign=“top”>
<table border=“0” cellpadding=“0” cellspacing=“0” width=“645”>
<tr>
<td> </td>
</tr>
</table>
<table border=“0” cellpadding=“0” cellspacing=“0” width=“645”>
<tr>
<td style=“font-size: 36pt; font-family: Arial; font-weight: bold; color: #FFFFFF” width=“100%” valign=“top”>
<table border=“0” cellpadding=“0” cellspacing=“0” width=“100%”>
<tr>
<td width=“82%” valign=“top” align=“center”> <br> <div align=“left”>
<table width=“95%” border=“0” align=“center” cellpadding=“2” cellspacing=“0”>
<tr>
<td width=“100%” style=“font-family: Arial; font-size: 12pt; font-weight: bold; color: #00FF00” align=“center”><div align=“left”>
<p>The Following information has been sent to
us.<br>
</p>
<table width=“470” border=“0” align=“center”>
<tr bgcolor="#CCCCCC">
<td width=“140”><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>Visitor
Name:</font></td>
<td width=“320”><strong><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>
<%response.write session(“name”)
%>
</font></strong></td>
</tr>
<tr bgcolor="#CCCCCC">
<td><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>Visitor
E-Mail:</font></td>
<td><strong><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>
<%response.write session(“email”)
%>
</font></strong></td>
</tr>
<tr bgcolor="#CCCCCC">
<td><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>Visitor
Tel. No:</font></td>
<td><strong><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>
<%response.write session(“tel”)
%>
</font></strong></td>
</tr>
<tr bgcolor="#CCCCCC">
<td><font color="#000000" size=“2”>Physical
Adress</font><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>:</font></td>
<td><strong><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>
<%response.write session(“address”)
%>
</font></strong></td>
</tr>
<tr bgcolor="#CCCCCC">
<td valign=“top”><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>Info
Required<strong>:</strong></font></td>
<td><strong><font color="#000000" size=“2” face=“Arial, Helvetica, sans-serif”>
<%response.write session(“partners”)
%>
<br>
<%response.write session(“kids”)
%>
<br>
<%response.write session(“music”)
%>
<br>
<%response.write session(“theatre”)
%>
<br>
<%response.write session(“dance”)
%>
<br>
<%response.write session(“sats”)
%>
</font></strong></td>
</tr>
</table>
<p> </p>
</div></td>
</tr>
<tr>
<td width=“100%” style=“font-family: Arial; font-size: 13pt; font-weight: bold; color: #C0C0C0” align=“center”><font color="#FF0000" size=“3”>LIFE
ON THE CUTTING EDGE BEGINS AND ENDS WITH JESUS!</font></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table>

  &nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/td&gt;

</tr><!–msnavigation–></table>
</body>

</html>

I usually use CDONTS so I’m not enitirly sure why your code is not working. Check this out, I know this works

Not sure how I can use that? :h: Or if it’s of any help? Sorry…?? Help?

What do you mean :puzzled: , just change the variables. You wanted and ASP form mailer yes?

Ive been looking for this code for a while as it was part of a module at school i did and couldnt get working.

Anyways i just tried the above code from the zip file but get this message when i submit the form “METHOD NOT ALLOWED” - The requested method POST is not allowed for the URL /email-action.asp"

Any ideas why this is?

i uploaded it to my site to test at <url>http://www.tribehut.com/MyForm.htm</url>

There’s the problem right there.

thanks norie. must I delete it, or just change it?

oh, im sorry it was only a little jokie.

:lol:

Wussup Norie, how you been brova? :slight_smile:

Pretty good, getting really busy lately, but im starting to sneek some post in here and there. :beam:

ok, ditch your first example. digitals looks good and should be working.

what you want is the simple html page then submit that to your asp page which he supplied you with (the one with the code he’s showed on his page)

from there all you have to do is change the EmailFromAddress value. Don’t worry about displaying a message about the message being sent, just worry about getting the page working. If you can’t get it working then post your code here and I’m sure somebody can help (when I say code I mean your HTML & ASP pages)

there might be a problem with your webhost and CDONTS but I doubt it, for the moment lets say its a problem with your code

oh and most importantly…don’t panic or get stressed, what your asking isn’t complicated it’s just cause your new to it it seems difficult. Everybody starts as a beginner so don’t worry :thumb:

Thanks so much RabBell. Glad to see somebody understands!!:}

I’ll see if I can fix it, thanks again!!!:thumb: