home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 March
/
Chip_2000-03_cd.bin
/
tema
/
Tatousek
/
scripts
/
formmail.asp
next >
Wrap
Text File
|
1999-12-22
|
18KB
|
743 lines
<%@ LANGUAGE="JavaScript" %>
<%
JMail = Server.CreateObject("JMail.SMTPMail");
JMail.ServerAddress = "mail.tatousek.cz";
version = 1.40;
if (Request.Form("odesilatel_email").Count == 0)
{
odesilatel_email = "robot@jtwds.cz"
}
else
odesilatel_email = Request.Form ("odesilatel_email");
if (Request.Form("odesilatel_jmeno").Count == 0)
{
odesilatel_jmeno = "Robot systemu JT WebDesign Studio - http://www.jtwds.cz"
}
else
odesilatel_jmeno = Request.Form ("odesilatel_jmeno");
if (Request.Form("subject").Count == 0)
{
subject = "Udaje z formulare";
}
else
subject = Request.Form ("subject");
if (Request.Form("polozka_1_nazev").Count != 0)
{
polozka_1_nazev = Request.Form ("polozka_1_nazev") + ": "
}
else
polozka_1_nazev = "";
if (Request.Form("polozka_2_nazev").Count != 0)
{
polozka_2_nazev = Request.Form ("polozka_2_nazev") + ": "
}
else
polozka_2_nazev = "";
if (Request.Form("polozka_3_nazev").Count != 0)
{
polozka_3_nazev = Request.Form ("polozka_3_nazev") + ": "
}
else
polozka_3_nazev = "";
if (Request.Form("polozka_4_nazev").Count != 0)
{
polozka_4_nazev = Request.Form ("polozka_4_nazev") + ": "
}
else
polozka_4_nazev = "";
if (Request.Form("polozka_5_nazev").Count != 0)
{
polozka_5_nazev = Request.Form ("polozka_5_nazev") + ": "
}
else
polozka_5_nazev = "";
if (Request.Form("polozka_6_nazev").Count != 0)
{
polozka_6_nazev = Request.Form ("polozka_6_nazev") + ": "
}
else
polozka_6_nazev = "";
if (Request.Form("polozka_7_nazev").Count != 0)
{
polozka_7_nazev = Request.Form ("polozka_7_nazev") + ": "
}
else
polozka_7_nazev = "";
if (Request.Form("polozka_8_nazev").Count != 0)
{
polozka_8_nazev = Request.Form ("polozka_8_nazev") + ": "
}
else
polozka_8_nazev = "";
if (Request.Form("polozka_9_nazev").Count != 0)
{
polozka_9_nazev = Request.Form ("polozka_9_nazev") + ": "
}
else
polozka_9_nazev = "";
if (Request.Form("polozka_10_nazev").Count != 0)
{
polozka_10_nazev = Request.Form ("polozka_10_nazev") + ": "
}
else
polozka_10_nazev = "";
if (Request.Form("polozka_11_nazev").Count != 0)
{
polozka_11_nazev = Request.Form ("polozka_11_nazev") + ": "
}
else
polozka_11_nazev = "";
if (Request.Form("polozka_12_nazev").Count != 0)
{
polozka_12_nazev = Request.Form ("polozka_12_nazev") + ": "
}
else
polozka_12_nazev = "";
if (Request.Form("polozka_13_nazev").Count != 0)
{
polozka_13_nazev = Request.Form ("polozka_13_nazev") + ": "
}
else
polozka_13_nazev = "";
if (Request.Form("polozka_14_nazev").Count != 0)
{
polozka_14_nazev = Request.Form ("polozka_14_nazev") + ": "
}
else
polozka_14_nazev = "";
if (Request.Form("polozka_15_nazev").Count != 0)
{
polozka_15_nazev = Request.Form ("polozka_15_nazev") + ": "
}
else
polozka_15_nazev = "";
if (Request.Form("polozka_16_nazev").Count != 0)
{
polozka_16_nazev = Request.Form ("polozka_16_nazev") + ": "
}
else
polozka_16_nazev = "";
if (Request.Form("polozka_17_nazev").Count != 0)
{
polozka_17_nazev = Request.Form ("polozka_17_nazev") + ": "
}
else
polozka_17_nazev = "";
if (Request.Form("polozka_18_nazev").Count != 0)
{
polozka_18_nazev = Request.Form ("polozka_18_nazev") + ": "
}
else
polozka_18_nazev = "";
if (Request.Form("polozka_19_nazev").Count != 0)
{
polozka_19_nazev = Request.Form ("polozka_19_nazev") + ": "
}
else
polozka_19_nazev = "";
if (Request.Form("polozka_20_nazev").Count != 0)
{
polozka_20_nazev = Request.Form ("polozka_20_nazev") + ": "
}
else
polozka_20_nazev = "";
if (Request.Form("polozka_21_nazev").Count != 0)
{
polozka_21_nazev = Request.Form ("polozka_21_nazev") + ": "
}
else
polozka_21_nazev = "";
if (Request.Form("polozka_22_nazev").Count != 0)
{
polozka_22_nazev = Request.Form ("polozka_22_nazev") + ": "
}
else
polozka_22_nazev = "";
if (Request.Form("polozka_23_nazev").Count != 0)
{
polozka_23_nazev = Request.Form ("polozka_23_nazev") + ": "
}
else
polozka_23_nazev = "";
if (Request.Form("polozka_24_nazev").Count != 0)
{
polozka_24_nazev = Request.Form ("polozka_24_nazev") + ": "
}
else
polozka_24_nazev = "";
if (Request.Form("polozka_25_nazev").Count != 0)
{
polozka_25_nazev = Request.Form ("polozka_25_nazev") + ": "
}
else
polozka_25_nazev = "";
if (Request.Form("polozka_26_nazev").Count != 0)
{
polozka_26_nazev = Request.Form ("polozka_26_nazev") + ": "
}
else
polozka_26_nazev = "";
if (Request.Form("polozka_27_nazev").Count != 0)
{
polozka_27_nazev = Request.Form ("polozka_27_nazev") + ": "
}
else
polozka_27_nazev = "";
if (Request.Form("polozka_28_nazev").Count != 0)
{
polozka_28_nazev = Request.Form ("polozka_28_nazev") + ": "
}
else
polozka_28_nazev = "";
if (Request.Form("polozka_29_nazev").Count != 0)
{
polozka_29_nazev = Request.Form ("polozka_29_nazev") + ": "
}
else
polozka_29_nazev = "";
if (Request.Form("polozka_30_nazev").Count != 0)
{
polozka_30_nazev = Request.Form ("polozka_30_nazev") + ": "
}
else
polozka_30_nazev = "";
if (Request.Form("polozka_1_body").Count != 0)
{
polozka_1_body = Request.Form ("polozka_1_body")
}
else
polozka_1_body = "";
if (Request.Form("polozka_2_body").Count != 0)
{
polozka_2_body = Request.Form ("polozka_2_body")
}
else
polozka_2_body = "";
if (Request.Form("polozka_3_body").Count != 0)
{
polozka_3_body = Request.Form ("polozka_3_body")
}
else
polozka_3_body = "";
if (Request.Form("polozka_4_body").Count != 0)
{
polozka_4_body = Request.Form ("polozka_4_body")
}
else
polozka_4_body = "";
if (Request.Form("polozka_5_body").Count != 0)
{
polozka_5_body = Request.Form ("polozka_5_body")
}
else
polozka_5_body = "";
if (Request.Form("polozka_6_body").Count != 0)
{
polozka_6_body = Request.Form ("polozka_6_body")
}
else
polozka_6_body = "";
if (Request.Form("polozka_7_body").Count != 0)
{
polozka_7_body = Request.Form ("polozka_7_body")
}
else
polozka_7_body = "";
if (Request.Form("polozka_8_body").Count != 0)
{
polozka_8_body = Request.Form ("polozka_8_body")
}
else
polozka_8_body = "";
if (Request.Form("polozka_9_body").Count != 0)
{
polozka_9_body = Request.Form ("polozka_9_body")
}
else
polozka_9_body = "";
if (Request.Form("polozka_10_body").Count != 0)
{
polozka_10_body = Request.Form ("polozka_10_body")
}
else
polozka_10_body = "";
if (Request.Form("polozka_11_body").Count != 0)
{
polozka_11_body = Request.Form ("polozka_11_body")
}
else
polozka_11_body = "";
if (Request.Form("polozka_12_body").Count != 0)
{
polozka_12_body = Request.Form ("polozka_12_body")
}
else
polozka_12_body = "";
if (Request.Form("polozka_13_body").Count != 0)
{
polozka_13_body = Request.Form ("polozka_13_body")
}
else
polozka_13_body = "";
if (Request.Form("polozka_14_body").Count != 0)
{
polozka_14_body = Request.Form ("polozka_14_body")
}
else
polozka_14_body = "";
if (Request.Form("polozka_15_body").Count != 0)
{
polozka_15_body = Request.Form ("polozka_15_body")
}
else
polozka_15_body = "";
if (Request.Form("polozka_16_body").Count != 0)
{
polozka_16_body = Request.Form ("polozka_16_body")
}
else
polozka_16_body = "";
if (Request.Form("polozka_17_body").Count != 0)
{
polozka_17_body = Request.Form ("polozka_17_body")
}
else
polozka_17_body = "";
if (Request.Form("polozka_18_body").Count != 0)
{
polozka_18_body = Request.Form ("polozka_18_body")
}
else
polozka_18_body = "";
if (Request.Form("polozka_19_body").Count != 0)
{
polozka_19_body = Request.Form ("polozka_19_body")
}
else
polozka_19_body = "";
if (Request.Form("polozka_20_body").Count != 0)
{
polozka_20_body = Request.Form ("polozka_20_body")
}
else
polozka_20_body = "";
if (Request.Form("polozka_21_body").Count != 0)
{
polozka_21_body = Request.Form ("polozka_21_body")
}
else
polozka_21_body = "";
if (Request.Form("polozka_22_body").Count != 0)
{
polozka_22_body = Request.Form ("polozka_22_body")
}
else
polozka_22_body = "";
if (Request.Form("polozka_23_body").Count != 0)
{
polozka_23_body = Request.Form ("polozka_23_body")
}
else
polozka_23_body = "";
if (Request.Form("polozka_24_body").Count != 0)
{
polozka_24_body = Request.Form ("polozka_24_body")
}
else
polozka_24_body = "";
if (Request.Form("polozka_25_body").Count != 0)
{
polozka_25_body = Request.Form ("polozka_25_body")
}
else
polozka_25_body = "";
if (Request.Form("polozka_26_body").Count != 0)
{
polozka_26_body = Request.Form ("polozka_26_body")
}
else
polozka_26_body = "";
if (Request.Form("polozka_27_body").Count != 0)
{
polozka_27_body = Request.Form ("polozka_27_body")
}
else
polozka_27_body = "";
if (Request.Form("polozka_28_body").Count != 0)
{
polozka_28_body = Request.Form ("polozka_28_body")
}
else
polozka_28_body = "";
if (Request.Form("polozka_29_body").Count != 0)
{
polozka_29_body = Request.Form ("polozka_29_body")
}
else
polozka_29_body = "";
if (Request.Form("polozka_30_body").Count != 0)
{
polozka_30_body = Request.Form ("polozka_30_body")
}
else
polozka_30_body = "";
;
JMail.Sender = (odesilatel_email);
JMail.SenderName = (odesilatel_jmeno);
JMail.Subject = (subject);
JMail.AddRecipient (Request.Form ("email"));
if (Request.Form ("zakazat_hlavicku") != "ano")
{
JMail.AppendText ("Odesilatel: " + odesilatel_jmeno + "\n");
JMail.AppendText ("E-Mail: " + odesilatel_email + "\n" + "\n");
};
if (Request.Form ("technicke_informace") == "ano")
{
JMail.AppendText ("USER_IP: " + Request.ServerVariables("REMOTE_ADDR") + "\n");
JMail.AppendText ("HTTP_HOST: " + Request.ServerVariables("HTTP_HOST") + "\n");
JMail.AppendText ("HTTP_REFERER: " + Request.ServerVariables("HTTP_REFERER") + "\n");
JMail.AppendText ("HTTP_USER_AGENT: " + Request.ServerVariables("HTTP_USER_AGENT") + "\n" + "\n");
};
JMail.AppendText (polozka_1_nazev + polozka_1_body + "\n");
JMail.AppendText (polozka_2_nazev + polozka_2_body + "\n");
JMail.AppendText (polozka_3_nazev + polozka_3_body + "\n");
JMail.AppendText (polozka_4_nazev + polozka_4_body + "\n");
JMail.AppendText (polozka_5_nazev + polozka_5_body + "\n");
JMail.AppendText (polozka_6_nazev + polozka_6_body + "\n");
JMail.AppendText (polozka_7_nazev + polozka_7_body + "\n");
JMail.AppendText (polozka_8_nazev + polozka_8_body + "\n");
JMail.AppendText (polozka_9_nazev + polozka_9_body + "\n");
JMail.AppendText (polozka_10_nazev + polozka_10_body + "\n");
JMail.AppendText (polozka_11_nazev + polozka_11_body + "\n");
JMail.AppendText (polozka_12_nazev + polozka_12_body + "\n");
JMail.AppendText (polozka_13_nazev + polozka_13_body + "\n");
JMail.AppendText (polozka_14_nazev + polozka_14_body + "\n");
JMail.AppendText (polozka_15_nazev + polozka_15_body + "\n");
JMail.AppendText (polozka_16_nazev + polozka_16_body + "\n");
JMail.AppendText (polozka_17_nazev + polozka_17_body + "\n");
JMail.AppendText (polozka_18_nazev + polozka_18_body + "\n");
JMail.AppendText (polozka_19_nazev + polozka_19_body + "\n");
JMail.AppendText (polozka_20_nazev + polozka_20_body + "\n");
JMail.AppendText (polozka_21_nazev + polozka_21_body + "\n");
JMail.AppendText (polozka_22_nazev + polozka_22_body + "\n");
JMail.AppendText (polozka_23_nazev + polozka_23_body + "\n");
JMail.AppendText (polozka_24_nazev + polozka_24_body + "\n");
JMail.AppendText (polozka_25_nazev + polozka_25_body + "\n");
JMail.AppendText (polozka_26_nazev + polozka_26_body + "\n");
JMail.AppendText (polozka_27_nazev + polozka_27_body + "\n");
JMail.AppendText (polozka_28_nazev + polozka_28_body + "\n");
JMail.AppendText (polozka_29_nazev + polozka_29_body + "\n");
JMail.AppendText (polozka_30_nazev + polozka_30_body + "\n");
JMail.AddHeader ("Originating-IP", Request.ServerVariables("REMOTE_ADDR"));
JMail.AddHeader ("Generated by JT WebDesign Server - http://www.jtwds.cz, version: ", version);
JMail.Execute ();
if (Request.Form("url").Count != 0)
{
Response.Redirect (Request.Form ("url"))
}
else
{ %>
<html>
<head>
<title>JT WebDesign Studio - Odeslßno...</title>
<meta name="Copyright" content="JT WebDesign Studio - Jiri Tatousek - http://www.jtwds.cz">
<meta name="Copyright" content="JT WebDesign Studio - Jiri Tatousek - info@jtwds.cz">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<body text="#000000" bgcolor="#FFFFFF">
</head>
<center><b><font face="Arial CE, Arial" size="3">VßÜ formulß° byl odeslßn</font></b></center>
<br>
<center><a href="<% Response.Write (Request.ServerVariables ("HTTP_REFERER")) %>" target="_self">Zp∞t na odkazujφcφ strßnku</a></center>
</body>
</html>
<% };
%>