如果没有发送电子邮件,请帮助解决此问题。我确实有一些var_dump($message);
,没关系。
var_dump
如下:
string(1591)“申请人的雇主简历:如果提示,请登录 您的EMAIL,密码:123456
姓名:ROSE MARIE DE GUZMAN |护照:护照下载|简历:简历 下载
“string(1581)”申请人的雇主简历:如果提示,请登录 您的EMAIL,密码:123456
名称:CHERRY BAUTISTA |护照:护照下载|简历:简历 下载
“string(1622)”申请人的雇主简历:如果提示,请登录 您的EMAIL,密码:123456
姓名:ALYSSA FAYE SUNGA |护照:护照下载|简历:简历 下载
$message = "<html>
<head>
<title></title>
</head>
<body>
Applicants CVs for employer: IF prompted, login with
your EMAIL, Password:123456<br><br><tr><td>Name: $fName $lName
</td><br><td>Passport: <a href='http://acf.emmanuelst.com/".$passportPath."'
target='_blank'>Passport Download</a></td></td><br>CV: <a
href='http://acf.emmanuelst.com/biodata.php?&idvisa=".$idvisa."&
phoNamePath=".$phoNamePath."&position=".$position."&agent=".$agent."&
emailApp=".$emailApp."&lName=".$lName."&fName=".$fName."&mName=".$mName."&
pAdd=".$pAdd."&perAdd=".$perAdd."&age=".$age."&bDate=".$bDate."&
pBirth=".$pBirth."&sex=".$sex."&languageSpoken=".$languageSpoken."&
height=".$height."&weight=".$weight."&bCivilStatus=".$bCivilStatus."&
bReligion=".$bReligion."&spouse=".$spouse."&emergency=".$emergency."&
telemerCP=".$telemerCP."&hs=".$hs."&hsComplete=".$hsComplete."&
hsGrad=".$hsGrad."&hsDegree=".$hsDegree."&coll=".$coll."&
collComplete=".$collComplete."&collGrad=".$collGrad."&
collDegree=".$collDegree."&voc=".$voc."&vocComplete=".$vocComplete."&
vocGrad=".$vocGrad."&vocDegree=".$vocDegree."&hc=".$hc."&
hcComplete=".$hcComplete."&hcGrad=".$hcGrad."&hcDegree=".$hcDegree."&
local1_post=".$local1_post."&local1_fr=".$local1_fr."&
local1_to=".$local1_to."&local1_name=".$local1_name."&
local1_add=".$local1_add."&local2_post=".$local2_post."&
local2_fr=".$local2_fr."&local2_to=".$local2_to."&
local2_name=".$local2_name."&local2_add=".$local2_add."&
local3_post=".$local3_post."&local3_fr=".$local3_fr."&
local3_to=".$local3_to."&local3_name=".$local3_name."&
local3_add=".$local3_add."&local4_post=".$local4_post."&
local4_fr=".$local4_fr."&local4_to=".$local4_to."&
local4_name=".$local4_name."&local4_add=".$local4_add."&
local5_post=".$local5_post."&local5_fr=".$local5_fr."&
local5_to=".$local5_to."&local5_name=".$local5_name."&
local5_add=".$local5_add."' target='_blank'>CV Download</a>
<br>
<br>
</body>
</html>
";
答案 0 :(得分:0)
您可以使用Beanshell vs JSR223 vs Java JMeter Scripting: The Performance-Off You've Been Waiting For!,您的代码看起来像这样
$message = <<<EOF
<html>
<head>
<title></title>
</head>
<body>
Applicants CVs for employer: IF prompted, login with your EMAIL, Password:123456
<br />
<table>
<tr>
<td>
Name: $fName $lName
</td>
<td>
Passport: <a href='http://acf.emmanuelst.com/$passportPath' target='_blank'>Passport Download</a>
</td>
<td>
CV: <a href='http://acf.emmanuelst.com/biodata.php?&idvisa=$idvisa&phoNamePath=$phoNamePath&position=$position&agent=$agent&emailApp=$emailApp&lName=$lName&fName=$fName&mName=$mName&pAdd=$pAdd&perAdd=$perAdd&age=$age&bDate=$bDate&pBirth=$pBirth&sex=$sex&languageSpoken=$languageSpoken&height=$height&weight=$weight&bCivilStatus=$bCivilStatus&bReligion=$bReligion&spouse=$spouse&emergency=$emergency&telemerCP=$telemerCP&hs=$hs&hsComplete=$hsComplete&hsGrad=$hsGrad&hsDegree=$hsDegree&coll=$coll&collComplete=$collComplete&collGrad=$collGrad&collDegree=$collDegree&voc=$voc&vocComplete=$vocComplete&vocGrad=$vocGrad&vocDegree=$vocDegree&hc=$hc&hcComplete=$hcComplete&hcGrad=$hcGrad&hcDegree=$hcDegree&local1_post=$local1_post&local1_fr=$local1_fr&local1_to=$local1_to&local1_name=$local1_name&local1_add=$local1_add&local2_post=$local2_post&local2_fr=$local2_fr&local2_to=$local2_to&local2_name=$local2_name&local2_add=$local2_add&local3_post=$local3_post&local3_fr=$local3_fr&local3_to=$local3_to&local3_name=$local3_name&local3_add=$local3_add&local4_post=$local4_post&local4_fr=$local4_fr&local4_to=$local4_to&local4_name=$local4_name&local4_add=$local4_add&local5_post=$local5_post&local5_fr=$local5_fr&local5_to=$local5_to&local5_name=$local5_name&local5_add=$local5_add' target='_blank'>CV Download</a>
</td>
</tr>
</table>
</body>
</html>
EOF;
// Keep a blank line
我强烈建议您不要使用包含这么多变量的href属性。所以对于CV链接,只需使用类似这样的东西
CV: <a href='http://acf.emmanuelst.com/biodata.php?&idvisa=$idvisa' target='_blank'>CV Download</a>