> I am a little unsure of the way this function works ... does it
> result in a
> comma delimited string purely?
>
> eg., if I alter a column from a query like
>
> <cfset emailto = valuelist(#member.email#)>
>
> Assuming there are say 5 email addresses in this result/email column...
> could I use #emailto# in the "To:" field of a <CFMAIL> email as is?
>
> Would it look like "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], etc.?

Yes and (very slightly) no

A ValueList does make a comma separates list, and in CFMail it will appear
as the list of emails, but without the space after the commas

Also, some SMTP servers don't like commas between emails, so you should put
semi-colons instead

Now, under CF4 (not sure about CF4.5) you could only send a CFMail to 40
recipients, also, you usually don't want everybody knowing who else got the
email, so I would say to loop through the query and send an individual email
to each person singly - more stress for the email server, but you're
guaranteed that it'll hit everyone and without them knowing the rest of the
list

Hope this answers

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to