Skip to main content
Inspiring
May 15, 2008
Question

Quick cfmail question

  • May 15, 2008
  • 2 replies
  • 241 views
I have a table that contains names and email addresses. In some cases, there are duplicates.

In my query, I would do a select distinct to eliminate the duplicate addresses.

For the cfmail part, I have this :

<cfmail to="#qry.email#"
cc="xxxx"
from="xxxx"
subject="xxxx"
query="qry"
group="email"
type="html">

Do I need the query part, and the group will eliminate the duplicates ? And this will generate an email for every email address from the query and I do not need a cfloop ?
    This topic has been closed for replies.

    2 replies

    Inspiring
    May 15, 2008
    You shouldn't need the group attribute.
    Inspiring
    May 15, 2008
    and what do the docs say about this?

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/