這可能是一個簡單的修復方法,但我對此很陌生。我有一些來自以前的開發人員的代碼,並且我被要求編輯發送出去的電子郵件的文本。我曾嘗試使用常規的href標記,但該功能無效。在下面的例子中是否有一種特殊的方式來添加網址?這是準備開始行。點擊應該超鏈接。謝謝!!在函數中添加url鏈接
function send_info_kit(){
if($_POST):
$to = mysql_real_escape_string($_POST['email_info']);
$q = "INSERT INTO rog_info_requesters(`email`) VALUES('{$to}')";
$r = mysql_query($q) or die(mysql_error());
print $to;
$from ='[email protected]';
$name = 'Reaching Our Goal';
$subject='Info kit you requested';
$message=nl2br('Information on America’s best fundraising program for sports teams and
school groups is attached.
Finally, a modern process that generates thousands of dollars in profit and
takes just minutes to launch.
A few reasons why www.rechingourgoal.org is the right choice:
- Takes minutes
- No selling
- 80% Profits
- Online tracking
- We do the work
Ready to get started now? http://www.reachingourgoal.org"Click!
Text ROG to 9192835123. Get clued in on amazing results and success tips.
We are helping people like you do amazing things every day.
Reaching Our Goal
www.ReachingOurGoal.org
');
$cc='';
$bcc='[email protected],[email protected]';
//$attach='http://www.reachingourgoal.org/assets/images/ReachingOurGoalInfoKit.pdf';
$file = FCPATH .'/assets/images/ROGFreeInfo.pdf';
if(file_exists($file)):
{
echo "File exists. Path ok: " . $file;
}
else:
{
echo "Cannot find file: " . $file;
}
endif;
$this->member->send_info($to,$from,$name ,$subject,$message,$cc,$bcc,$file);
endif;
}
downvote,爲什麼? – Vishal