这可能是一个简单的修复,但我对此很陌生。我有一些来自以前的开发人员的代码,并且被要求编辑发送的电子邮件的文本。我尝试过使用常规的 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 ='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a797f7a7a65787e4a786f6b696263646d657f786d656b662465786d" rel="noreferrer noopener nofollow">[email protected]</a>';
$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='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d273823260d3f282c2e2524232a22383f2a222c2163223f2a" rel="noreferrer noopener nofollow">[email protected]</a>,<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="84eeebeac4e9fdf7f4ebf6f0f7e0f6e1e5e9f7aae7ebe9" rel="noreferrer noopener nofollow">[email protected]</a>';
//$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;
}
最佳答案
$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? <a href="http://www.reachingourgoal.org">Click!</a>
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
');
关于php - 在函数中添加 url 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10705760/