> This sounds like a stupid newbie question (is the newbie stupid
> or is it the
> question?) but I'm bonking my head against my monitor right now...
>
> Take a look at the code down below. Two CFMAIL things. The first sends an
> email with no carriage returns -- everything's on one line (that
> wraps). The
> second CFMAIL sends the email as it's formatted. What's the difference?
>
> The code:
> <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"
> subject="Broker Info Requested" server="#mailserver#">
<CF_SNIP>
> </cfmail>
>
> <cfmail to="#email#" from="[EMAIL PROTECTED]" subject="Broker
> Info Requested" server="#mailserver#">
> #first_name# #last_name#,
> Thank you for requesting info on the broker plan
> from http://www.DentalPlanInfo.com
> I'll be mailing you information on starting your own Dental Plan
> business, but if you have any immediate questions, feel free to
> call me at 1-888-328-1660 (9AM to 9PM Pacific).
>
> Jay Jennings
> Broker
> DentalPlanInfo.com
> </cfmail>

OK, because you have a CR at the end of your CFIF, then it'll appear as a
blank line if the if  doesn't fire...

What I do is to build the mail into a string and send that string, but as
Simon has pointed out, use Chr(13) & Chr(10) for you end of line, that way
you can build the message as you want it, without any gaps or blanks

HTH

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************

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

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to