In my experiences, if there is nothing preceding a CF variable in a
cfmail, then it doesn't recognize the formatting. I combat this by
putting dashes (- #City#) before so that it knows to drop down. There
may be a more elegant way of doing it, but that's how I resolve it.
Something like this.
NAME: #Form.name#
ADDRESS:
- #Form.address#
- #Form.city#, #Form.state# #Form.zip#
PHONE: #Form.phone#
EMAIL: #Form.email#
HTH
Michael Corrigan
Programmer
Endora Digital Solutions
www.endoradigital.com
630/942-5211 x-134
----- Original Message -----
From: Jordie Fike
To: CF-Talk
Sent: Friday, December 14, 2001 12:00 PM
Subject: cfmail formatting
I have the following snippet of code that goes with a cfmail statment;
--------------------------------------------------------------start------
--------------------------------------------------------
BILLING INFO:
NAME: #Form.name#
ADDRESS: #Form.address#
#Form.city#, #Form.state# #Form.zip#
PHONE: #Form.phone#
EMAIL: #Form.email#
----------------------------------------------------------------end------
-------------------------------------------------------
and my question is why does the email that comes in look like;
--------------------------------------------------------------start------
--------------------------------------------------------
BILLING INFO:
NAME: Jordie Fike
ADDRESS: P.O. Box 2560 Kill Devil Hills, NC 27948
PHONE: 252-441-6698
EMAIL: [EMAIL PROTECTED]
----------------------------------------------------------------end------
-------------------------------------------------------
instead of like;
--------------------------------------------------------------start------
--------------------------------------------------------
BILLING INFO:
NAME: Jordie Fike
ADDRESS: P.O. Box 2560
Kill Devil Hills, NC 27948
PHONE: 252-441-6698
EMAIL: [EMAIL PROTECTED]
----------------------------------------------------------------end------
-------------------------------------------------------
i.e why does my return after the address and before the city
disappear? If
I put text (CITY:) in front of the #Form.city# variable then it keeps
the
return, any ideas? I can fix it if I set TYPE=HTML, but rather than
putting
a band-aid on the cut I'd rather figure out why it's bleeding.
Jordie Fike
Tech Admin/Lead Programmer
[EMAIL PROTECTED]
http://www.obinet.com
phone - 1.252.441.6698
fax - 1.252.480.2259
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists