phpbar.de logo

Mailinglisten-Archive

[php] AW: [php] Frage zu HTML-Mails

[php] AW: [php] Frage zu HTML-Mails

Patrik Geisel patrik.geisel_(at)_luka.de
Wed, 14 Mar 2001 10:41:32 +0100


Das ist richtig.

Hier ein Beispiel. Der E-Mail-Client entscheidet dann, was er darstellen
möchte.

<?php
$body="\r\ng--c0p4Jq0M2Yt08j34c0pContent-Type: text/plain;
charset=iso8859-1; format=flowed\r\nContent-Transfer-Encoding:
8bit\r\n\r\n$textbody\r\n\r\n--gc0p4Jq0M2Yt08j34c0p\r\nContent-Type:
text/html; charset=iso8859-1;\r\nContent-Transfer-Encoding:
8bit\r\n\r\n$htmlbody\r\n";

mail("$to","$subject",$body,"Mime-Version: 1.0\r\nFrom: $from\r\nReply-To:
$replyto\r\nContent-Type: multipart/alternative;\r\n
boundary=gc0p4Jq0M2Yt08j34c0p\r\n");
?>

Gruss

Patrik




php::bar PHP Wiki   -   Listenarchive