亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

php怎么發HTML格式的EDM郵件

php怎么發HTML格式的EDM郵件

侃侃爾雅 2019-03-29 10:59:48
網上貌似沒有相關代碼,看到sf發的EDM郵件,不知道是用什么相關原理做的,感覺沒有思路使用php自帶的mail,直接變成了html的代碼
查看完整描述

2 回答

?
呼如林

TA貢獻1798條經驗 獲得超3個贊

php手冊里有發送HTML郵件的例子://multiplerecipients
$to='[email protected]'.',';//notethecomma
$to.='[email protected]';
//subject
$subject='BirthdayRemindersforAugust';
//message
$message='
BirthdayRemindersforAugust

HerearethebirthdaysupcominginAugust!

PersonDayMonthYear
Joe3rdAugust1970
Sally17thAugust1973
';
//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";
//Mailit
mail($to,$subject,$message,$headers);
?>
                            
查看完整回答
反對 回復 2019-03-29
  • 2 回答
  • 0 關注
  • 273 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號