home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 March
/
Chip_2000-03_cd.bin
/
tema
/
Tatousek
/
scripts
/
freemail.asp
< prev
Wrap
Text File
|
1999-12-22
|
8KB
|
323 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_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 = "";
;
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.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>
<% };
%>