| 1 | 2 | simandl | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | | | <html> |
| 3 | | | <head> |
| 4 | | | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> |
| 5 | | | <? |
| 6 | | | require('grab_globals.lib.php'); |
| 7 | | | if ($OKa) { |
| 8 | | | echo "<meta Výsledek : ".$_POST["OKa"].">"; |
| 9 | | | } |
| 10 | | | ?> |
| 11 | | | <style type="text/css" media="screen"> @import "style.css"; </style> |
| 12 | | | <title>db.jablonka.cz mail</title> |
| 13 | | | </head> |
| 14 | | | <link rel="stylesheet" type="text/css" href="style.css"> |
| 15 | | | </head> |
| 16 | | | <body topmargin=0 leftmargin=10> |
| 17 | | | <? |
| 18 | | | include("header.htm"); |
| 19 | | | include ("fce.php"); |
| 20 | | | |
| 21 | | | if(!@$action) |
| 22 | | | { |
| 23 | | | |
| 24 | | | echo ' |
| 25 | | | |
| 26 | | | <b>Odeslání mailu:</b><br> |
| 27 | | | |
| 28 | | | |
| 29 | | | <form action="mail.php?action=sendmail" method=POST> |
| 30 | | | <table> |
| 31 | | | <tr> |
| 32 | | | <td class=text>From:</td><td><input class=field name="from" type="text" value="info@jablonka.cz" size=25></td> |
| 33 | | | <td class=text>To:</td><td><input class=field name="to" type="text" value="'.$to.'" size=25></td> |
| 34 | | | </tr> |
| 35 | | | <tr> |
| 36 | | | <td class=text>Bcc:</td><td colspan=3><input class=field name="bcc" type="text" value="" size=55></td> |
| 37 | | | </tr> |
| 38 | | | <tr> |
| 39 | | | <td class=text>Subj:</td><td colspan=3><input class=field name="subj" type="text" value="'.$subj.'" size=55></td> |
| 40 | | | </tr> |
| 41 | | | <tr><td colspan=4 class=text>text<br> |
| 42 | | | <textarea class=fieldthin name="text" rows=10 cols=65>'.$text.'</textarea> |
| 43 | | | </td> |
| 44 | | | </tr> |
| 45 | | | </table> |
| 46 | | | <input class=field type="submit" name="OK" value=" pošli mail "> |
| 47 | | | </form> |
| 48 | | | '; |
| 49 | | | } |
| 50 | | | else |
| 51 | | | { |
| 52 | | | |
| 53 | | | $headers = "From: $from\n"; |
| 54 | | | $headers .= "MIME-Version: 1.0\n"; |
| 55 | | | $headers .= "Content-Type: text/plain; charset=iso-8859-2\n"; |
| 56 | | | #$headers .= "Content-Transfer-Encoding: quoted-printable\n"; |
| 57 | | | $headers .= "Content-Transfer-Encoding: 8bit\n"; |
| 58 | | | $headers .= "Return-Path: $from\n"; |
| 59 | | | $headers .= "Bcc: nobody@nomail.cz,".$bcc."\n"; |
| 60 | | | |
| 61 | | | $result = mail($to, $subj, $text, $headers); |
| 62 | | | |
| 63 | | | if (!$result) { |
| 64 | | | echo "<br><b>Výsledek asi chyba: ".$result."</b><br>"; |
| 65 | | | } else { |
| 66 | | | echo "<br><b>Mail byl úspěšně poslán!</b><br>"; |
| 67 | | | } |
| 68 | | | |
| 69 | | | #echo "<br><br>mail($to, $subj, $text, $headers)"; |
| 70 | | | #print "<center><h3>Your message has been sent</h3></center>"; |
| 71 | | | |
| 72 | | | echo ' |
| 73 | | | <br> |
| 74 | | | <br> |
| 75 | | | <img src=images/arrow.jpg> <a href="javascript:history.go(-1)" class=odkaz>zpět</a> |
| 76 | | | <img src=images/arrow.jpg> <a href="javascript:history.go(-2)" class=odkaz>zpět o dva</a> |
| 77 | | | '; |
| 78 | | | } |
| 79 | | | ?> |
| 80 | | | </body> |
| 81 | | | </html> |