最近我实施了一个系统,客户可以通过电子邮件提供有关客户服务的反馈。发送给他们的电子邮件包括两个单选按钮、一个评论文本输入框和一个提交按钮。该解决方案已在 Gmail 中进行了测试并且运行良好,但是我们收到的报告称 Hotmail、Outlook 以及我们所知道的其他人也存在问题。
在 Hotmail 中测试后,我们发现无法选择单选按钮,提交按钮没有任何作用,而在 Outlook 中,整个内容显示为文本。
电子邮件从 Salesforce 平台发送,HTML 如下:
<p>Hi {!recipient.name},</p>
<p>An issue you raised with us has been marked for closure. We would
appreciate if you could take a few seconds to just let us know whether
you were satisfied with the resolution.</p>
<p>Your case is number: {!relatedTo.CaseNumber}. The subject for your case is: {!relatedTo.Subject}.</p>
<form method="post" action="www.oursite.com/feedback.php" onsubmit="Disable()">
<input type="radio" name="yesno" value="This issue was resolved." checked="true">This issue was resolved.</input><br></br>
<input type="radio" name="yesno" value="This issue was not resolved">This issue was not resolved.</input>
<p>Anything else we should know? <input type="text" name="comments"></input></p>
<input type="hidden" name="cust" value="{!recipient.name}"></input>
<input type="hidden" name="caseendid" value="{!relatedTo.CaseNumber}"></input>
<input type="hidden" name="caselink" value="https://eu1.salesforce.com/{!relatedTo.Id}"></input>
<input type="submit" name="submit" value="Submit"></input>
</form>
<script>
function Disable()
{
var button;
button = document.getElementByName('submit');
button.enabled = false;
}
</script>
{!some.value} 中包含的任何内容在发送之前都会被 Salesforce 替换为文本。任何人都可以解释为什么我们在 Hotmail 或 Outlook 中遇到问题,因为在 MSDN 上或这里似乎并没有太多关于此的内容?