![]() ![]() |
is |
Subversion Repositories: |
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"><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");require('grab_globals.lib.php');$spojeni = MySQL_Connect($db_host, $db_user, $db_pass);MySQL_Select_DB($db_name);$test=MySQL_Query("SELECT MAX(id) FROM cleni");$test=MySQL_Fetch_Array($test);$maxid=$test["MAX(id)"];$to=id_to_email(0);$from=$to;$bcc=$to;for ($i=0;$i<=$maxid;$i++) {if(@$_POST["to$i"]) $bcc.=",".$_POST["to$i"];}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="'.@$from.'" size=25></td><td class=text>To:</td><td><input class=field name="to" type="text" value="'.@$to.'" size=45></td></tr><tr><td class=text>Bcc:</td><td colspan=3><input class=field name="bcc" type="text" value="'.@$bcc.'" size=65></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><tr><td class="text" colspan=3>';$from="info@jablonka.cz";$subject = "jablonka.cz";$text = "Zdravím,díkSíma\n";$text = str_replace(" ","%20",$text);$text = str_replace("\n","%0d",$text);echo '<a href="mailto:'.$to.'?subject='.$subject.'&bcc='.$bcc.'&body='.$text.'">Pošli pomocí externího programu</a></td><td><input class=field type="submit" name="OK" value=" pošli mail "></td></tr></table></form>';MySQL_Close($spojeni);?></body></html>