Sending Email With ColdFusion CFMAIL Replacement
Author:
Pete Freitag
Category: ColdFusion
Sends an Email using a query with ActivMail a replacement for CFMAIL
<cfquery name="qry" datasource="ds">
SELECT email, name
FROM farmers
</cfquery>
<CF_MAIL
QUERY="qry"
FROM="Billy Jones <billy@jones.com>"
TO="email"
SUBJECT="Hey %name% I got a new cow"
VERBOSE="1"
TOKENS="1"
TYPE="HTML"
TEXTMESSAGE="Hi %name%, just wanted to announce that I've got a new cow.">
Hi %name%, just wanted to announce that <b>I've got a new cow</b>.
</CF_MAIL>
This Example uses http://www.cfdev.com/activmail/ a replacement for CFMAIL
ActivEdit Browser Based WYSIWYG HTML Editor
More Code Samples