You can use a <cfmailparam> with a FROM header if you want to control where
the bounces go.  CFMAIL will use the FROM
attribute from the <cfmail> tag as a return-path header, and it will use
your second from header as a from field.

Here's some code to demonstrate:

<CFMAIL TO="#toaddress#"
 FROM="[EMAIL PROTECTED]"
 SUBJECT="testing">

<CFMAILPARAM NAME="from"
 VALUE='[EMAIL PROTECTED]'>
<CFMAILPARAM NAME ="reply-to"
 VALUE = '[EMAIL PROTECTED]'>
#message#
</cfmail>


The email will bounce to the [EMAIL PROTECTED] address if it fails, but
the from and replyto fields will show [EMAIL PROTECTED]

tom

"Bruce Holm" <[EMAIL PROTECTED]> wrote in message
0aa201c16947$4dccb3a0$[EMAIL PROTECTED]">news:0aa201c16947$4dccb3a0$[EMAIL PROTECTED]...
> If you send email out to a list using CFMAIL, where does bounces return
> to?
>
> To the FROM field or the REPLY_TO field if both are present in the
> outgoing header?
>
> -------------------------------------------------
> Bruce Holm - Web Programmer
> [EMAIL PROTECTED]
> -------------------------------------------------
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to