This content has been marked as final. Show 5 replies
Well that didn't seem to work too well. Each person on the list got 2 emails
and the message was supposed to be 'hello' but was:
'hello' on the first email and
'hellohellohellohellohello' on the second second..
There was a total of 4 people on the list...
cfif IsDefined ('Send_Mail')>
<cfmail from="#campaign.emailfrom#" to="#mailist.email#"
replyto="#campaign.emailreply#" server="***" subject="#campaign.subject#"
<cflocation url="done.cfm" addtoken="no">
Instead of cfloop, try using the query attribute of cfmail.
Funny, that is the opposite of what adam told me. Atleast with that I was
only getting one 'hello' in my body a bunch of the emails.
When I tried to dump the variable that is being sent, I get two of them
Nevermind. The email loop wasnt the problem. The inserting loop for the
query insert is.
What happens when you do this:
<cfdump var = "#mailist#">