0
这些选项没有工作PHP电子邮件在某些情况下,不发送
- Noshow_interview
- Book_Training
所有其他选项工作做好
如果有人看到一个错误只是想知道。
if($status == 'Uncontactable'){
$html= "Dear $d[1] $d[2],<br><br>
<p>Thank you for your recent job application We have tried contacting you to arrange an appointment but have been unsuccessful. Please call us on</p>
<br>
Kind regards,<br><br> <br>";}
//else if($status == 'NoShow_Training')
if($status == 'NoShow_Training'){
$html= "Dear $d[1] $d[2],<br><br>
<p>Our records indicate that you were booked in for training on $d[13] at $d[16] and did not turn up for training.<br>
Please contact me onu. </p>
<br>
Regards,<br><br><br>";}
//else if($status == "NoShow_Interview")
if($status == 'NoShow_Interview'){
//if($status === "Test"){
echo "--------";
echo $status;
echo "--------";
$html= "Dear $d[1] $d[2],<br><br>
<p>Thank you for your recent job application at
<br>
Our records indicate that you were booked in for an interview with us on $d[10] at $d[11]. However you did not turn up for the interview. If you are still looking for work and would like to arrange an alternate appointment please contact met </p>
<br>
Regards,<br><br><br>";}
// else if($status == 'Booked_Interview')
if($status == 'Booked_Interview'){
$html= "Hi $d[1] $d[2],<br><br>
<p>We're looking forward to meeting with you on $d[10] at $d[11].</p>
<p>We will attend to you.</p>
<br>
Kind regards,<br><br><br>";}
// else if($status == 'Booked_Training')
if($status == 'Booked_Training'){
$html= "Hi $d[1] $d[2],<br><br>
<p><b>Congratulations</b> on your successful interview with.</p>
<p>We are excited to have you as part of our team.</p>
<p>Training is scheduled for the $d[13] at $d[16], we look forward to seeing you then.</p>
<p>If you have any further queries, please do not hesitate to contact me on (03) 4514 or email on at [email protected]</p>
<br>
Kind regards,<br><br><br>";}
哇......这里没有足够的答案来回答你的问题。 (我不是那个标志你顺着btw的人)。 –
那么哪一个是“NoShow_Interview”或“Noshow_Interview?” “Book_Training”或“Booked_Trained”? – Flukey
没有错误,当将$状态更改为适当的值时,所有if语句都会执行!在这里顺便说一句switch()会更好 – Anonymous