well in your original post, your list contained only email addresses. If you are going to do a list with a pairing of information (ie Name, email, name, email, name, email) I would think that going with a 2d array as brad suggested would make your life easier. Of course if it is stored in the DB somehow, you can always just query out what you want as well, and loop the query.
HTH Rob On Mon, Jan 5, 2009 at 2:48 PM, cfcom <[email protected]> wrote: > Not sure if I have this right. Some of the recipients Names are not used in > their email, such as ('Mark Jones', '[email protected]') How would that > structure work? > > > > <cfset fisttoat = find(#recipient#, '@')> > > <cfset firstname = left(#recipient#, #firsttoat#)> > > <cfset recipients="[email protected], [email protected], [email protected], > [email protected]"> > > <cfloop list="#recipients#" index="recipient" delimiters=","> > > <cfmail to="#recipient#" from="#sender_email#" subject="My Message > To You 2009" > > > Dear #left#, > > This is my message to the recipient. This is my message to the > recipient. > > Yours truly, > > #sender_firstname# #sender_lastname# > </cfmail> > </cfloop> > > -----Original Message----- > From: Rob Parkhill [mailto:[email protected]] > Sent: 2009-01-05 2:08 PM > To: cf-talk > Subject: Re: Personalizing a CFLoop > > Well I am sure that there is a more elegant REGEX solution, but you can > always do a FIND and then a LEFT > so: > > <cfset fisttoat = find(#recipient#, '@')> > > <cfset firstname = left(#recipient#, #firsttoat#)> > > I am sure someone will post something more elegant, but that will work. > > Rob > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317414 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

