我正在使用 dotnet 框架发送一封电子邮件。下面是我用来创建消息的模板:
Date of Hire: %HireDate%
Annual Salary: %AnnualIncome%
Reason for Request: %ReasonForRequest%
Name of Voluntary Employee: %FirstName% %LastName%
Total Coverage Applied For: %EECoverageAmount%
Guaranteed Coverage Portion: %GICoveragePortion%
Amount Subject to Medical Evident: %GIOverage%
当在 Outlook 中接收到消息时,Outlook 告诉我“此消息中的额外换行被删除”。信息显示如下:
Date of Hire: 9/28/2001
Annual Salary: $100,000
Reason for Request: New Hire
Name of Voluntary Employee: Ronald Weasley Total Coverage Applied For: $500,000 Guaranteed Coverage Portion: $300,000.00 Amount Subject to Medical Evident: $200,000
请注意 Outlook 是如何错误地删除名称、 EECoverageamount 等后面所需的换行符的。
对于电子邮件接收者来说,获得正确格式的电子邮件非常重要,我不得不假设他们中的一些人使用 Outlook 2003。我也不能假设他们知道关闭 autoclean 功能来正确格式化消息。
我在其他邮件客户端中查看过这些消息,它们显示正确
更多信息:
问题: 如何更改消息的格式以避免此问题?