Which part is messing up, the loop? Try playing about with it:

<cfloop>OUTPUT HERE
</cfloop>

That will get rid of the extra line breaks.

Post a text file somewhere on a server so we can see what's going wrong.

Adrian

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: 04 April 2006 11:13
To: CF-Talk
Subject: Sending plain text emails


I'm trying to send plain text emails filled with variables, and it just
won't format itself right. It puts extra spacing here, takes it out there.
I'm thinking of using html email with tables and such, but wanted it to work
this way. Sorry if the posted code isn't formatted correctly.

Thanks,
Will

<cfmail from="#VARIABLES.emailaddress#"
to="#ARGUMENTS.Paypaltransdetails.customerbillingemail#"
   server="#VARIABLES.mailserver#" subject="Your Paypal Order Has Been
Processed by      #VARIABLES.companyname#"
>
*Please print out this email for your records

#ARGUMENTS.Paypaltransdetails.customerbillingfname#,

Thanks for your order with #VARIABLES.companyname#!

Your order ID is: #ARGUMENTS.Paypaltransdetails.orderID#
Order date: #DateFormat(ARGUMENTS.Paypaltransdetails.orderdate,
"m/dd/yyyy")#

Shipping Address
================

#ARGUMENTS.Paypaltransdetails.customershippingfname#
#Paypaltransdetails.customershippinglname#
#ARGUMENTS.Paypaltransdetails.customershippingaddress#
#ARGUMENTS.Paypaltransdetails.customershippingcity#,
#ARGUMENTS.customershipstate#
#ARGUMENTS.Paypaltransdetails.customershippingzip#
#ARGUMENTS.Paypaltransdetails.customershippingcountry#
Email: #ARGUMENTS.Paypaltransdetails.customerbillingemail#

You Ordered:
QTY            Description
Price (ea)
===            ===========
==========
<cfloop query="Paypalcartdetails">
  #prodqty#    #merchSKUID# #prodname#<cfif optionlist NEQ
"">(#optionlist#)</cfif>  #prodsellprice#
</cfloop>
Thanks for your order!
</cfmail>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236866
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to