Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFMAIL Formatting

Status
Not open for further replies.

khurram

IS-IT--Management
Joined
Jan 10, 2001
Messages
95
Location
CA
I am having trouble formatting data that is being pass through the CFMAIL tag. The information is coming from a query (storedproc to be exact) and it seems like I can't use <BR> even though I have CFOUTPUT.

Here's the code:

<CFMAIL query=&quot;SystemConfiguration&quot; to=&quot;#EmailAddressTo#&quot; from=&quot;#EmailAddressFrom#&quot;>
Dear #RecipientTo#,
#EmailMessage#
<CFOUTPUT>
#SubOptionDescription#
</CFOUTPUT>
<CFINCLUDE template=&quot;/webcontent/template/common/emailfooter.cfm&quot;>
</CFMAIL>

Any help? Thanks.
 
Khurram, <CFMAIL> behaves exactly like <CFOUTPUT>, so first of all it is not necessary (it's even a bad idea!) to put <CFOUTPUT> tags inside a <CFMAIL> tag.
Second of all, it's a bad idea to put HTML tags (like <BR>) inside a mail message, since not all email clients accept HTML. A better way would be #Chr(13)# combined with #Chr(10)#.
Hope this helps...

<webguru>iqof188</webguru>
 
If you want to use HTML code in your message, you need to set type=&quot;html&quot; in the <cfmail> tag.
 
Status
Not open for further replies.

Similar threads

  • Locked
  • Question Question
Replies
0
Views
929
  • Locked
  • Question Question
Replies
1
Views
239
  • Locked
  • Question Question
Replies
0
Views
141
Replies
1
Views
199

Part and Inventory Search

Sponsor

Back
Top