Script Example - Sending from CF MAIL using the CFMAILPARAM tag

By changing the FROM attribute to name@domain.com, the recipient cannot reply to the ACTUAL sender of the form based web inquiry using the reply function of most email programs and REPLYTO is supported in CF 5 and CFMX.
So the workaround is to use the cfmailparam tag to accomplish the task...

&ltCFMAIL TO="name@domain.com"
SERVER="mail.domain.com"
FROM="name@domain.com"
SUBJECT="Test">
&ltcfmailparam name="Reply-To" value="""#Firstname# #Lastname#""
&ltRealSender@AnotherDomain.com>">
</CFMAIL>

Add Feedback