php手冊里有發送HTML郵件的例子://multiplerecipients$to='[email protected]'.',';//notethecomma$to.='[email protected]';//subject$subject='BirthdayRemindersforAugust';//message$message='BirthdayRemindersforAugustHerearethebirthdaysupcominginAugust!
Person | Day | Month | Year |
Joe | 3rd | August | 1970 |
Sally | 17th | August | 1973 |
';//TosendHTMLmail,theContent-typeheadermustbeset$headers='MIME-Version:1.0'."\r\n";$headers.='Content-type:text/html;charset=iso-8859-1'."\r\n";//Additionalheaders$headers.='To:Mary,Kelly'."\r\n";$headers.='From:BirthdayReminder'."\r\n";$headers.='Cc:[email protected]'."\r\n";$headers.='Bcc:[email protected]'."\r\n";//Mailitmail($to,$subject,$message,$headers);?>