What platform are you developing on (e.g. Mac, Windows, Unix, etc.). Is the
ColdFusion Server on Windows or Unix? What mail server is ColdFusion
relaying mail off of? What mail clients are having difficulty displaying the
mail properly?

Perhaps the client you are developing on is only placing carriage returns or
line feeds at the end of each line and the OS expects both or the opposite.
Also, Some mail servers like qmail have a nasty habit of strip CR/LF pairs
into bare LFs. At which point, the client you are using may not be savvy
enough to render the page correctly (like the difference between opening up
a document created on a Unix system using Edit as opposed to an early
version of notepad).

There could be quite a few possible explanations for this. To troubleshoot,
you may want to try relaying mail off a different mail server and viewing
the mail from a different client. If neither of these fixes the problem, you
could try the following code:

<cfmail>
Email Address: #form.email##Chr(13)##Chr(10)#Business Name:
#form.businessname#
</cfmail>

That will place a CR/LF pair at the end of the e-mail address. If this fixes
the problem, then you may want to switch your IDE (or switch the way your
IDE handles end of line ASCII characters).

If your still having problems, please post back the answers to some of these
questions as well as the results of these test.

Benjamin S. Rogers
Web Developer, c4.net
voice: (508) 240-0051
fax: (508) 240-0057


-----Original Message-----
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 10:23 AM
To: CF-Talk
Subject: line breaks in cfmail


Hey all,

I have this ongoing problem with line breaks not being respecting when
formatting my email bodies using the cfmail tag. For example something like
this:


<cfmail>
Email Address: #form.email#
Business Name: #form.businessname#
</cfmail>

Is showing up like this when sent:

Email Address: #form.email# Business Name: #form.businessname#


Any suggestions? Thx!

Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to