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 '
Odeslání mailu:
From:
To:
Bcc:
Subj:
text
'.@$text.'
'; $from="info@jablonka.cz"; $subject = "jablonka.cz"; $text = "Zdravím, dík Síma \n"; $text = str_replace(" ","%20",$text); $text = str_replace("\n","%0d",$text); echo '
Pošli pomocí externího programu
'; MySQL_Close($spojeni); ?>