Sorry for the dealy - I had to do some testing :-)
Anyway, the server will only parse the mail for tokens if you have at least
one token defined. So, here's an example:
<cfquery name="test" datasource="testlist">
select email from members
</cfquery>
<cfx_imsmail query="test" queryfield="email"
smtpfrom="<[EMAIL PROTECTED]>" priority="9" warnto="<>" failto="<>"
header_to="[email protected]" header_from="[EMAIL PROTECTED]"
header_subject="test" token_test="test"
body="test message"
>
First, I do a query called "TEST". Then, in the CFX call I do two special
things:
1 - Set the header_to equal to the predefined token of [email protected]
2 - add a dummy token called test (token_test="test"). This causes the CFX
to instruct the POST Server to parse for embedded tokens.
Please let me know if you have any questions...
Regards,
Howie
----- Original Message -----
From: "Marc Lichtenfeld" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 12, 2000 12:25 PM
Subject: [iMS] processing e-mail
> Hi everyone,
>
> I am currently testing iMS for use with an e-mail broadcasting product my
> company has. I am trying to figure out what would be the best way to
> generate messages to 1,000-10,000 recipients. I have tried the following
two
> things so far:
>
> 1) Looping through a query of email addresses and running the CFX_IMSMAIL
> for each e-mail as such. Example:
> <cfloop query="x">
> <cfx_imsmail
> smtpto="#x.email#"
> smtpfrom="[EMAIL PROTECTED]"
> priority="0"
> body="This is the body of the email."
> header_to="#x.email#"
> header_from="[EMAIL PROTECTED]"
> header_subject="testing inFusion Mail Server"
> >
> </cfloop>
>
> 2) Using the Query/Queryfield attributes of the CFX_IMSMAIL tag.
>
> The first method took much longer to process, however the second method
> doesn't fill in the header_to field of the e-mail which I need to have
> populated.
>
> I know that I could try putting multiple recipients in the smtpto and
> header_to fields, but I need it to appear that each mail was sent out
> individually.
>
> Any assistance would be greatly appreciated.
>
> Marc Lichtenfeld
>
========================================================================
This list server is Powered by iMS
'The Swiss Army Knife of Mail Servers'
--------------------------------------
To leave this list please complete the form at
http://www.CoolFusion.com/iMS.htm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================