gpt4 book ai didi

php - 如何使用php在邮件功能中发送jquery?

转载 作者:行者123 更新时间:2023-11-29 06:16:22 25 4
gpt4 key购买 nike

我必须使用 jquery 工具提示在邮件中发送 html。 html 工作正常,但 jquery 工具提示未与 HTML 一起显示。我的代码是

require_once("config.php");

$to= "something@yahoo.com";
$subject= "Todays follow up status from Murree Hotels Website";

$query= "select * from honymoon_enquries WHERE arrival_date BETWEEN DATE(NOW()) AND DATE(NOW())+7 order by arrival_date";

$res=mysql_query($query);

$message = "<strong>Hi Admin <br><br> </strong>";

$message .= "<strong> Here is the list of all clients coming in next seven(7) days.<br><br> </strong>";

$message .="
<link rel='stylesheet' href='jquery-tooltip/jquery.tooltip.css'/>
<script src='jquery-tooltip/lib/jquery.js' type='text/javascript'></script>
<script src='jquery-tooltip/lib/jquery.bgiframe.js' type='text/javascript'></script>
<script src='jquery-tooltip/lib/jquery.dimensions.js' type='text/javascript'></script>
<script src='jquery-tooltip/jquery.tooltip.js' type='text/javascript'></script>

<script src='jquery-tooltip/demo/chili-1.7.pack.js' type='text/javascript'></script>

<script type='text/javascript'>
$(function() {
$('#right *').tooltip({
track: true,
delay: 100,
showURL: false,
extraClass: 'right'
});

$('#right2 a').tooltip({ showURL: false, positionLeft: true });

$('#block').click($.tooltip.block);

});
</script>
<table width='100%' cellpadding='0' cellspacing='0' style='margin-top:5px;margin-bottom:5px;'>
<tr>
<td>
<div style='border:1px solid #CCCCCC; padding:10px; padding-top:5px; text-align:center'>
<div>
<table width='100%' border='1' cellpadding='5' cellspacing='3'>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Arival_Date</th>
<th>Adminfeedback</th>
</tr>
";
while ($resresult = mysql_fetch_array($res)) {

$message .="
<tr BGCOLOR='99CCFF'>
<td>".$resresult['client_name']."</td>
<td>".$resresult['client_email']."</td>
<td>".$resresult['client_phone']."</td>
<td>".$resresult['arrival_date']."</td>
<td align='left' title='".$resresult['adminfeedback']."' style='cursor:help;'>".$resresult['adminfeedback']."</td>
";
}
$message .="</table></div></td> </tr> </table></div>" ;


$headers = "From: sales@murreehotels.net"."\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";


if (!mail($to,$subject,$message,$headers)) {
die("Message sending failed");
}

最佳答案

简短的回答是你不能。邮件客户端去掉 JS。在某些客户端中包含外部样式表几乎是不可能的,更不用说 JS

关于php - 如何使用php在邮件功能中发送jquery?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6302095/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com