When I send a text formatted email using CFMail, Coldfusion 10, I am seeing an extra blank space at the beginning of the message body. When I capture the .cfmail file from my spool directory, it looks like this in part:
bcc: dale@realgo.com
replyto: dale@realgo.com
subject: 2 listings
X-Mailer: ColdFusion 10 Application Server
List-Unsubscribe: <http://overlord.dev.realgo.com/go/B3ANTR4IHSUB>
X-Receiver: dale@realgo.com,dale@realgo.com
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
body: $Prospective Buyer,
body:
body: RealGo, Inc.
body:
body:
body: For a detailed view of these listings including all photos, visit this link
body:
body: Residential-Detached Listings
body:
body: SRC MLS # PRICE $ BD BA SQFT LOCALE STAT ADDRESS
body: IRES 722659 LP900,000 3 3 1948 Boulder A 593 Lee Hill Dr
body: ------------------------Total Residential-Detached Listings: 1
Note that there are 2 spaces between "body:" and the text for that line, but on the first line there are 3 spaces.
The "$" is on that line as a check to make sure my message body didn't itself have the extra space, it was generated by
<cfset EmailBody = "$#EmailBody#">
My cfmail is coded as follows:
<cfmail
to = "#Attributes.To#"
from = "#Attributes.From#"
cc = "#Attributes.CC#"
bcc = "#Attributes.BCC#"
replyTo = "#Attributes.Reply_To#"
subject = "#Attributes.Subject#"
type = "text"
charset="us-ascii">
<cfif "#Attributes.EmailUnsubscribeLink#" NEQ "">
<cfmailparam name="List-Unsubscribe" value ="<#Attributes.EmailUnsubscribeLink#>">
</cfif>
<cfmailparam name="X-Receiver" value="#xReceivers#">
<cfmailparam name="MIME-Version" value="1.0">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
#EmailBody#
</cfmail>
I have tried this with all the whitespace collapsed, to no effect. Any ideas on what might be causing this extra space to appear?
Thanks,
dtwineham