나는 아래와 같은 스타일의 이메일 본문이있는 텍스트 영역을 가지고 있습니다. 그러나 전자 메일은 Outlook에서 아래 스타일 중 하나를 유지하지 않습니다. 나는 <cfmail type="html"
이있다. 스타일을 유지하는 방법에 대한 아이디어는 아래에 있습니다. 추가 html 태그에는 전자 메일에 포함 된 다른 꼬리말 파일에 닫는 태그가 있습니다.이메일 coldfusion에서 스타일을 잃는 Textarea
<textarea name="email_body">
<table class="one-column" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-spacing:0" bgcolor="#FFFFFF">
<tr><td align="left" style="padding:10px 40px 40px 40px"><p style="color:#5f6971; font-size:20px; text-align:left; font-family: Helvetica, Arial, sans-serif"><strong>Dear Dr. <cfoutput>#user.fname# #user.lname#</cfoutput>, </strong></p><p style="color:#5f6971; font-size:16px; text-align:left; font-family: Helvetica, Arial, sans-serif">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</p></td></tr></table>
<strong> <cfoutput>#user.detail#</cfoutput></strong>
<center><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td><table border="0" cellpadding="0" cellspacing="0"><tr><td height="20" width="100%" style="font-size: 20px; line-height: 20px;"> </td></tr></table><table border="0" align="center" cellpadding="0" cellspacing="0" style="Margin:0 auto;"><tbody><tr><td align="center"><table border="0" cellpadding="0" cellspacing="0" style="Margin:0 auto;"><tr><td width="250" height="60" align="center" bgcolor="#1a99e6"><a href="http://www.example.net" target="_blank" style="width:250; display:block; text-decoration:none; border:0; text-align:center; font-weight:bold;font-size:18px; font-family: Arial, sans-serif; color: #ffffff; background:#1a99e6" class="button_link">View the User Detail</a></td></tr></table></td></tr></tbody></table></td></tr>
</table></center></td></tr>
</table></textarea>
gmail과 같은 웹 기반 전자 메일 클라이언트에서 전자 메일을 보려고 했습니까? Outlook은 전자 메일에 대한 전체 CSS 사양을 지원하지 않기 때문에 묻습니다. Outlook에서 지원하지 않는 모든 기능을 보려면 여기를 살펴보십시오. https://www.campaignmonitor.com/css/email-client/outlook-2007-16/ 웹 기반 클라이언트에서 예상대로 렌더링되는 경우, Outlook 지원 수준이 범인이 될 수 있습니다. –