You are a life (and hair) saver! Marian
--- In [email protected], "riquez" <[EMAIL PROTECTED]> wrote: > Here is a HTML mail function that I use - it also includes the plain > text part. > the boundaries are important & delimit the plain & HTML sections - my > example uses > ABC_123 > > <?php > // ********** SENDEMAIL ************* > > $to = "[EMAIL PROTECTED]"; > $title = "My first HTML email"; > $headers = "From: [EMAIL PROTECTED]"; > $headers .="X-Mailer: PHP5\n"; > $headers .="MIME-Version: 1.0\n"; > $headers .="Content-type: multipart/alternative; b > oundary=\"=ABC_123\"\n\n"; > > $message .="This is a multi-part message in MIME format.\n\n"; > > $message .="--=ABC_123\n"; > > $message .="Content-Type: text/plain; charset=\"iso-8859-1\"\n"; > $message .="Content-Transfer-Encoding: 7bit\n\n"; > $message .= "START MY PLAIN TEXT CONTENT HERE\n"; > $message .="MORE TEXT\n"; > $message .="EVEN MORE TEXT\n"; > $message .="\n"; > > $message .="--=ABC_123\n"; > $message .="Content-Type: text/html; charset=\"iso-8859-1\"\n"; > $message .="Content-Transfer-Encoding: 7bit\n\n"; > > $message .="<html><head><title>My HTML Email</title></head><body>\n"; > $message .="<p><strong><font size=\"5\" face=\"Arial, Helvetica, > sans-serif\" > color=\"pink\">GREETINGS</font></strong></p>\n"; > $message .="</body></html>\n\n"; > > $message .="--=ABC_123--"; > > mail($to,$title,$message,$headers); > ?> > > hope it helps, > Riquez Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
