coldfusion send email (1): only text or html
Coldfusion 發送簡易電子郵件的方法: 使用 cfmail 標籤指令 純文字模式 <cfmail to="recipient1@mail.domain.com,recipient2@mail.domain.com" from="sender@mail.mydomain.com" subject="顧客意見反映" server="mail.mydomain.com" username="MySmtpAccount" password="MyPassword" type=" text "> 本訊息由網頁『顧客意見』發出,請勿回覆此信件。#chr(13)##chr(10)# 發訊時間 :#DateFormat(NOW() , 'yyyy/mm/dd')# #TimeFormat(NOW() , 'HH:mm:ss')# 發訊人姓名:#SenderName##chr(13)##chr(10)# 發訊人電話:#SenderTEL##chr(13)##chr(10)# 發訊人郵件:#SenderMail##chr(13)##chr(10)# = = = = = = = = = = = = = = = = = = = = #MailBodyText# </cfmail> HTML模式 <cfmail to="recipient1@mail.domain.com,recipient2@mail.domain.com" from="sender@mail.mydomain.com" subject="顧客意見反映" server="mail.mydomain.com" username="MySmtpAccount" password="MyPassword" type=" html "> <div styl...