[請益] 使用smart mailer寄信 內容部分文字如何超連結?
剛接觸網頁的工作 有遇到問題
爬文 都發現 大家mail相關問題
都是 收信或 被擋信之類的
我這邊卻是 可以正常寄信 對方也能收
(因為是公司外包的 但內容總得自己改)
但是 公司希望能在回覆給user信件內容裡 能加入超連結
以下是程式碼
<?php
// Smart Mailer 1.0.3
// Send on load
$sm1->setSubject("XXXXXX報名資訊");
// using static for body
$sm1->setBody_Static_html("資料如下:\n姓名:".$row_rsThisRegister['name']."
\n請問這行文字要如何連結yahoo?");
// Attachments none
$sm1->sendMail("one");
?>
我在 setBody_Static_html裡
打<a href="http://tw.yahoo.com.tw" target="_blank">Yahoo</a>
但是語法不符 請問我該怎麼修改 才能做到?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.222.173
PHP 近期熱門文章
PTT數位生活區 即時熱門文章