tom muck wrote:

> 
> <cfmail to="[EMAIL PROTECTED]"
>  from="[EMAIL PROTECTED]"
>  subject="test image"
> 
> <cfmailparam name="mime-version" value="1.0">
> <cfmailparam name="content-type"
> value='multipart/alternative;
> boundary="------------7C252360672B03A0BAD013A5"'>


AFAIK this generates double content type headers. Not all mail clients 
will understand this.


> Content-Transfer-Encoding: 7bit


This means that characters with an ASCII value above 127 are off-limits.


> --------------7C252360672B03A0BAD013A5
> Content-Type: image/gif; name="myimage.gif"
> Content-Transfer-Encoding: base64
> Content-ID: <003a01c11b56$c06b9d20$[EMAIL PROTECTED]>
> 
> <cffile action="read" file="#expandpath('myimage.gif')#"
> variable="charData">
> <cfset data64 = toBase64(charData)>#data64#
> 
> 
> --------------7C252360672B03A0BAD013A5--


This will bomb on quite a few mailservers and mailclients. The RFC 
dealing with mail (RFC 2822) says the following about line lengths:

'  - Lines of characters in the body MUST be limited to 998 characters,
      and SHOULD be limited to 78 characters, excluding the CRLF.'


Unfortunately I don't have a PnP solution for these problems. I have 
coded around some of these in the advancedemail tag available from 
http://jochem.vandieten.net/coldfusion/customtags/, but at the price of 
creating other problems. But you could always take a look to get some ideas.

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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

Reply via email to