On 4/12/01 9:53 AM Brian Peddle wrote:

> Im attempting to post this for the 4th time.  I tried to apply the solution
> below and spent a couple hours on it but I can't seem to get it:  Code I am
> using is below.  It has been cut down a bit to make it straight forward.  I
> can sent the code as an attachment if needed as it seems as though proper
> carriage returns count.  Any help on this would be greatly appreciated

Brian, I found that using the <cfmailparam> tag to push the extra headers
(rather than appending them to the subject as was suggested) worked.

Instead of:

> <!--- Send the messages --->
> <CFMAIL To="#emailaddr#"
> From='"#Form.FromAlias#" <#form.from#>'
> Server="206.57.37.74"
> Subject="#mySubject#
> Content-type: #contenttype#
> #myHeaders#">#myPlainMsgTop##myPlainText#
> 
> #myHTMLMsgTop##myHTMLText#
> </cfmail>

I used:

<cfmail to="#emailaddr#" from="#Form.FromAlias#" <#form.from#>"
subject="#subject#">
<cfmailparam name="Content-type" value="#contenttype#">
#myPlainMsgTop##myPlainText#

#myHTMLMsgTop##myHTMLText#
</cfmail>

I believe that the cfmailparam tag isn't supported below CFAS 4.5 though.

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to