bohuzel jsem si smazal predchozi maily, kde Petr Novak resi problem s odeslanim kopie mailem (takze se to nezaradi do threadu), ale snad si to najde: tohle by melo fungovat: <?php // nechce se mi vymyslet jmena ;) $mail['sender']['name'] = $mail['sender']['address'] = 'odesilatel@example.com'; $mail['recipient']['name'] = $mail['recipient']['address'] = 'prijemce@example.com'; $mail['recipient_cc']['name'] = $mail['recipient_cc']['address'] = 'kopie@example.com'; $mail['subject'] = 'phpmail'; $mail['body'] = 'phpmail text'; // pripravime hlavicku emailu $headers = "From: \"" . $mail['sender']['name'] . "\" <" . $mail['sender']['address'] . ">\n"; $headers .= "To: \"" . $mail['recipient']['name'] . "\" <" . $mail['recipient']['address'] . ">\n"; $headers .= "Cc: \"" . $mail['recipient_cc']['name'] . "\" <" . $mail['recipient_cc']['address'] . ">\n"; $headers .= "Content-Type: text/plain;\n charset=\"iso-8859-2\"\n"; $headers .= "Reply-To: \"" . $mail['sender']['name'] . "\" <" . $mail['sender']['address'] . ">\n"; $headers .= "X-Mailer: h!ynek\n"; // odesleme email if (mail('',$mail['subject'],$mail['body'],$headers)) {echo 'OK';} else {echo 'KO';} ?> -- -h!- http://hyneklipa.cz/ ICQ: 289612872Received on Wed, 25 Feb 2004 10:09:53 +0100
This archive was generated by hypermail 2.1.8 : 25. 02. 2004, 10:10 CET