Copy link to clipboard
Copied
Dear All,
I have a serious problem with HTML formatting in emails using CFMAIL.
Emails are working perfect in Lotus Domino environment, but it breaks the formatting in the Windows exchange server environment.
I tried the all the permutations and combinations to make it work in the Exchange server environment.
Production server is in the Exchange server environment. Emails are generated from ColdFusion server and received through Domino or Exchange server.
Would appreciate if anyone can find me a permenant solution. I am using CFMAIL to send emails from Coldfusion. Please review the attached file.
Thank you in advance
Joshi Thomas
Email :: joshi.muthukattil@gmail.com
Below is the code :
<CFLOOP QUERY="qry_UserSupplierAlert">
<CFMAIL FROM="eprocure@fwc.com" TO="#USR_EMAIL#" SUBJECT="eProcurement - Supplier Alert - Authorized" TYPE="HTML">
<HTML>
<BODY>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" ALIGN="center" WIDTH="80%">
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Dear #USR_NAME#,
<BR>
<BR>
A supplier alert code #attributes.alertResult.alr_code# has been authorized by #attributes.alertResult.managerName# of #attributes.alertResult.MOfficeName#, #attributes.alertResult.MOffAddress#.
</FONT>
<BR /> <BR />
<TABLE CLASS="text" BORDER="0">
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Supplier:
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.SUP_NAME#, #attributes.alertResult.SUP_CITY#, #attributes.alertResult.SUP_COUNTRY#
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Location
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.SUP_CITY#, #attributes.alertResult.SUP_PROV#, #attributes.alertResult.SUP_COUNTRY#
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
GSN
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.SUP_ID#
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Alert Title
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.ALR_TITLE#
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Description
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.ALR_NOTES#
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Supervisor Comments
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.supervisor_comments#
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Manager Comments
</FONT>
</TD>
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
: #attributes.alertResult.manager_comments#
</FONT>
</TD>
</TR>
</TABLE>
<BR />
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">
Please check on your project(s) whether this supplier is being considered for a PO, or has been <BR />
awarded a PO, and decide what actions you need to take, to mitigate the possible risks of dealing<BR />
with this supplier.
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
</CFMAIL>
</CFLOOP>
Copy link to clipboard
Copied
Hi Joshi,
Please remove the css and give inline styles and try.