Zdravim, uz jednou jsem do konve posilal nize uvedeny skript (nyni jen vycuc), kde jsem resil problem s cestinou. Chyba byla, hlavne diky pp21, odstranena, cimz mu timto dekuji. Vyskytl se ovsem jeste jeden problem, se kterym uz se potykam treti den, ale nedari se... Jde o to, ze po odeslani formulare neobdrzim kopii mailu na zvolenou e-mailovou adresu uvedenou za cc:. Divam se do knizky "PHP pro uplne zacatecniky" a v podstate jsem skript opsal, takze chybu v zapisu bych si teoreticky dovolil vyloucit. Mrknul jsem se i do knizky od Koska, ale vhodny priklad jsem tam zrovna nenasel. Poradi mi nekdo, kde muze byt zakopana hyena? Diky Terr. $strFrom = $pole['kontaktni_email'];//cilovy mail si nacte z formu - v tomto pripade je identicky se $strTo $strTo = "cilovy@mail.cz"; $strSubject = "Subject"; $strBody = "Text"; $headers = "Content-Type: text/plain; charset=windows-1250\n"; $headers .= "Return-Path: <webmaster@mail.cz>\n"; $headers .= "cc: kopie@mail.cz\n";//kopii chci zaslat na tuhle adresu $headers .= "charset=windows-1250\n"; if (@mail ($strTo, $strSubject, $strBody, $headers . "From:$strFrom\nX-Mailer: php")) ***************************************************************************** This document should only be read by those persons to whom it is addressed and is not intended to be relied upon by any persons without subsequent written confirmation of its contents. Accordingly, Rieber & Son disclaim all responsibility and accept no liability (including in negligence) for the consequences for any person acting, or refraining from acting, on such information prior to the receipt by those persons of subsequent written confirmation. If you have recieved this E-mail message in error, please notify us immediately by telephone. Please also destroy and delete the message from your computer. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this E-mail message is strictly prohibited. Rieber & Son ASA postmaster@rieberson.no Bergen, Norway *****************************************************************************Received on Wed, 25 Feb 2004 06:35:09 +0100
This archive was generated by hypermail 2.1.8 : 25. 02. 2004, 06:35 CET