Quick cfmail question - Cold Fusion

This is a discussion on Quick cfmail question - Cold Fusion ; 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#" ...

+ Reply to Thread
Results 1 to 3 of 3

Quick cfmail question

  1. Default Quick cfmail question

    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 ?


  2. Default Re: Quick cfmail question

    and what do the docs say about this?

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

  3. Default Re: Quick cfmail question

    You shouldn't need the group attribute.

+ Reply to Thread