macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: cfmail: All recipients on the To: line line

Subject: Re: cfmail: All recipients on the To: line line
From: "drivetheline"
Date: Thu, 9 Aug 2007 01:49:07 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
A small tweak to my original <cfmail> tag and  cf_dev2's suggestion of using 
the ValueList function seems to have done the trick.  The syntax that worked 
was adding a maxrows=1.  This eliminated the duplicate messages coming across.

 <cfset theList = ValueList(user.emailaddress, ";")>
 <cfmail query="user" to="#theList#" from="#cookie.user_email#" 
subject="#form.title#--A new email from the family web site" type="HTML" 
maxrows=1>
 ...
 </cfmail>


<Prev in Thread] Current Thread [Next in Thread>