jablonka.czprosek.czf

is

Subversion Repositories:
[/] [trunk/] [html/] [mail.php] - Rev 8 Go to most recent revision

Compare with Previous - Blame - Download


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<?
require('grab_globals.lib.php');
if ($OKa) {
echo "<meta Výsledek : ".$_POST["OKa"].">";
}
?>
<style type="text/css" media="screen"> @import "style.css"; </style>
<title>db.jablonka.cz mail</title>
</head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body topmargin=0 leftmargin=10>
<?
include("header.htm");
include ("fce.php");

if(!@$action)
{

echo '

<b>Odeslání mailu:</b><br>


<form action="mail.php?action=sendmail" method=POST>
<table>
  <tr>
     <td class=text>From:</td><td><input class=field name="from" type="text" value="info@jablonka.cz" size=25></td>
     <td class=text>To:</td><td><input class=field name="to" type="text" value="'.$to.'" size=25></td>
  </tr>
  <tr>
     <td class=text>Bcc:</td><td colspan=3><input class=field name="bcc" type="text" value="" size=55></td>
  </tr>
  <tr>
     <td class=text>Subj:</td><td colspan=3><input class=field name="subj" type="text" value="'.$subj.'" size=55></td>
  </tr>
  <tr><td colspan=4 class=text>text<br>
     <textarea class=fieldthin name="text" rows=10 cols=65>'.$text.'</textarea>
     </td>
  </tr>
</table>
<input class=field type="submit" name="OK" value="&nbsp;pošli mail&nbsp;">
</form>
';
}
else
{

$headers = "From: $from\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/plain; charset=iso-8859-2\n";
#$headers .= "Content-Transfer-Encoding: quoted-printable\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "Return-Path: $from\n";
$headers .= "Bcc: nobody@nomail.cz,".$bcc."\n";

$result = mail($to, $subj, $text, $headers);

if (!$result) {
echo "<br><b>Výsledek asi chyba: ".$result."</b><br>";
} else {
echo "<br><b>Mail byl úspěšně poslán!</b><br>";
}

#echo "<br><br>mail($to, $subj, $text, $headers)";
#print "<center><h3>Your message has been sent</h3></center>";

echo '
<br>
<br>
<img src=images/arrow.jpg>&nbsp;<a href="javascript:history.go(-1)" class=odkaz>zpět</a>
<img src=images/arrow.jpg>&nbsp;<a href="javascript:history.go(-2)" class=odkaz>zpět o dva</a>
';
}
?>
</body>
</html>

Powered by WebSVN 2.2.1