[Erledigt] html mit mail versenden Guten Abend
Ich habe ein dickes Problem. Ich habe mir so ein Script gebastelt welches Anhänge an x beliebig viele Members schicken kann. Leider muss ich auch mit HTML formatieren und Bilder im Mail mit schicken und so weiter. aber immer wenn ich den header mit html ergänze dann kommt nur noch ein blankes mail an. kann mir jemand helfen wie ich html code in dem script mitschicken kann?
[code]
<?php
$vars=explode(",","send,subject,message,email,acti on");
foreach($vars as $v){
if ($HTTP_GET_VARS[$v]!=""){$$v=$HTTP_GET_VARS[$v];}
if ($HTTP_POST_VARS[$v]!=""){$$v=$HTTP_POST_VARS[$v];}
}
# Flatfile DB mit den Mailadressen
$filelocation="mailadressen.txt";
$newfile = fopen($filelocation,"r");
$content = fread($newfile, filesize($filelocation));
fclose($newfile);
$content=stripslashes($content);
$out="";
$lines = explode("%",$content);
foreach($lines as $l){
if ($l != $email){$out .= "%".$l;}
else{$found=1;}
}
if ($send != "yes" && $send != "test"){
print'<form method="post"><input type="hidden" name="send" value="yes"> Editor:
Subject:
<input type="text" class="input" name="subject" size="20">
Message:
<textarea cols="50" rows="10" class="input" wrap="virtual" name="message"></textarea> |