[ webtim @ 24.04.2005. 23:56 ] @
Skinuo sam neku skriptu u php-u i sad mi treba samo deo koda za Bcc znaci da primaoci ne vide ostale adrese na koje je poslat email. Code: <?php //enter in YOUR Password here for the script $password='yourpassword'; // Send e-mail to specified address $to = ($_POST['sendto']) ; $from = ($_POST['from']) ; $from_header = "From: $from"; $subject = ($_POST['subject']); $message = ($_POST['message']); $verify = ($_POST['verify']); if ($verify <>$password){ $raddress = getenv("REMOTE_ADDR"); ?> <br><br> <div align="center"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="36%" id="table1"> <tr> <td bgcolor="#000080"><b><font color="#FFFFFF" face="Verdana" size="2"> Message Info:</font></b></td> </tr> <tr> <td bgcolor="#FFFFCC"> <p align="center"><b>Invalid Password<br> <br>Your IP address is: <? echo $raddress; ?> </b></p> <p> </td> </tr> </table> </div> <? exit; } // remove html code function removehtmlcode($data) { $find ="\'"; $replace ="'"; $data = str_replace ($find,$replace,$data); $find = " '\ "; $find = rtrim ($find); $replace =" '"; $data = str_replace ($find,$replace,$data); $find ='\"'; $replace ='"'; $data = str_replace ($find,$replace,$data); $find = ' "\ '; $find = rtrim ($find); $replace =' "'; $data = str_replace ($find,$replace,$data); return $data; } $message = removehtmlcode($message); $subject = removehtmlcode($subject); mail($to, $subject, $message, $from_header); //echo "<b>mail has been sent</b>"; ?> <br> <br> <div align="center"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="36%" id="table1"> <tr> <td bgcolor="#000080"><b><font color="#FFFFFF" face="Verdana" size="2"> Message Info:</font></b></td> </tr> <tr> <td bgcolor="#FFFFCC"> <p align="center"><b>Your Message Has Been Sent</b></p> <p> </td> </tr> </table> </div> |