Oh, I see. So even if your passed-in params are different, iMS makes the assumption that the same email going to the same recipient will have the same body content, yes? In that case, I'm not sure what to suggest. I don't think "Remove Dupes" really works in the way that you might think, but Howie should weigh in on that.

My only other suggestion would be to treat each different email permutation as a separate email altogether, so you first loop over the different emails you have to send out, and then call cfx_imsmail with the recipient query for just that email. Not what you want to do, I'm sure, but it would work.



Tim Nelson wrote:
The emails are in multiple rows, but iMS will only send to the same email once. I wrote this to test it, and it will not send more than one email to [EMAIL PROTECTED] (I tested this with real addresses).

< cfscript >
qEmail = QueryNew("");

aryEmail = ArrayNew(1);
aryEmail[1] = "[EMAIL PROTECTED]";
aryEmail[2] = "[EMAIL PROTECTED]";
aryEmail[3] = "[EMAIL PROTECTED]";

aryId = ArrayNew(1);
aryId[1] = "2";
aryId[2] = "1";
aryId[3] = "3";

QueryAddColumn(qEmail, "email", aryEmail);
QueryAddColumn(qEmail, "id", aryId);
< /cfscript >

< cfdump var="#qEmail#" >

< cfsavecontent variable="emailBody" >
<html>
<p>Hola, <:email:>. (<:id:>)</p>
<html>
< /cfsavecontent >

< CFX_imsMail
 Priority="9"
 SMTPFrom="[EMAIL PROTECTED]"
 Header_To="<:email:>"
 Header_From="[EMAIL PROTECTED]"
 Header_Subject="Multi-email Test"
 Query="qEmail"
 HTML="#emailBody#"
 SpoolDir="\\imsout\"
 MaxAttempts="1"
 MaxRecipients="100"
 CharSet="utf-8"
 RemoveDupes="No"
 >

Thanks,
Tim


Ben Mueller wrote:
Tim,

I'm guessing you'd have to jump through some painful hoops to do what you want within iMS. Adding those rows to your query probably wouldn't be too hard, and I doubt iMS' processing time would be much affected.

[EMAIL PROTECTED] wrote:


I have a situation where I need to be able to send multiple emails to the same email address in a query. It's basically a contest where the same user may have multiple entries and we need to send an email for each entry.

We recently upgraded to cfx_imsmail v 4.7 partly because of the new "RemoveDupes" attribute that was added in v 4.3. I assumed that our code would now work properly as this attribute defaults to "No", but it doesn't seem to have any affect. I've also tried explicitly setting it to "No", but that doesn't work either.

Does anyone know how to send multiple emails to the same address? The only other option I see is to loop thru the query and send them one-by-one, which I'd rather not have to do.

Thanks,
Tim
==^=======================================================
This list server is Powered by iMS  "The Swiss Army Knife of Mail Servers"
--------------------------------------------------------------------------------------
This list is provided as a free service.  Although we will try to address issues
in a timely manner, support via this list is not guaranteed.  If you require 
expedited
support then a support contract is required.  Support may be purchased from
http://www.coolfusion.com/commerce.  Details regarding support options may be 
reviewed
at: http://www.coolfusion.com/SupportOptions.cfm
--------------------------------------------------------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://www.coolfusion.com/cfbb/
Note: You are subscribed as archive_jab_org / [email protected]
==^=======================================================


Reply via email to