du løber tabellen igennem og sender en mail til dem, eller sætter en tekst streng sammen og sætter alle sammen ind i bcc feltet og sender en mails som derved ryger ud til alle. du kan evt bruge denne mail function der kan du bruge html tags.
/* $TEXT="This is the first test\n in text format\n."; $HTML="<font color=red>This is the first test in html format.</font>";
SendMail( "my@address.com","afsender navn", //sender "modtag@mail","Recipients Name", //recipient "Testmail", //subject $TEXT,$HTML); //body and attachment(s) */ function SendMail($From,$FromName,$To,$ToName,$Subject,$Text,$Html){ $OB="----=_OuterBoundary_000"; $IB="----=_InnerBoundery_001"; $Html=$Html?$Html:preg_replace("/\n/","{br}",$Text) or die("neither text nor html part present."); $Text=$Text?$Text:"Sorry, but you need an html mailer to read this mail."; $From or die("sender address missing"); $To or die("recipient address missing");
//Messages start with text/html alternatives in OB $Msg ="This is a multi-part message in MIME format.\n"; $Msg.="\n--".$OB."\n"; $Msg.="Content-Type: multipart/alternative;\n\tboundary=\"".$IB."\"\n\n";
// html section $Msg.="\n--".$IB."\n"; $Msg.="Content-Type: text/html;\n\tcharset=\"iso-8859-1\"\n"; $Msg.="Content-Transfer-Encoding: base64\n\n"; // html goes here $Msg.=chunk_split(base64_encode($Html))."\n\n";
Jo du kunne nemt have sat min ind i din while løkke. Du kunne bare have smidt SendMail( "my@address.com","afsender navn", //sender "modtag@mail","Recipients Name", //recipient "Testmail", //subject $TEXT,$HTML); //body and attachment(s) ind istedet for din mail() Så kan du nemlig bruge html tags, hvis du ville udforme en pæn mail
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.