|
Hello all, I have some code that sends email to a list of recipients
but I’m having trouble and I’d love some advice. <cfset var campaign = GetCampaign() /> <cfmail
query="recipients" to="#recipients.email#" from="#Campaign.GetEmailFrom()#
(#Campaign.GetEmailFromAlias()#)" subject="Campaign
## #campaign.GetCampaignID()#" failto="#Campaign.GetEmailFailTo()#" mailerid="Summit
Projects, Inc. " type="HTML"> #HTMLBody# </cfmail> When I execute the (above) code it works, sort of. It sends
email just as expected except for one thing, the message looks like this (forgive
the lame content – it’s just test material) BEGIN CUSTOM FIELDS As you might have guessed, the fields above are all variables
that need to be populated from the query but are actually the content of the HTMLBody
variable. After fooling around with it for a while I found that using Evaluate(DE(HTMLBody))
properly replaces the CF variables with the appropriate query data. Good grief.
I hate using Evaluate, let alone Evaluate coupled with DE. Can I get some advice on how I could avoid using either Evaluate,
DE, or both altogether? Thanks in advance. I shiny bottle of beer at CFUnited to the person who tackles
the beast. Seth MacPherson You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
- [CFCDev] Avoiding Evaluate While Using ... Seth MacPherson
- Re: [CFCDev] Avoiding Evaluate Whi... Blair McKenzie
- RE: [CFCDev] Avoiding Evaluate... Peter Bell
- Re: [CFCDev] Avoiding Evaluate Whi... Nando
- Re: [CFCDev] Avoiding Evaluate... Nick Tong - TalkWebSolutions.co.uk
- RE: [CFCDev] Avoiding Evaluate... Peter Bell
- RE: [CFCDev] Avoiding Eval... Duba, Phillip
- Re: [CFCDev] Avoiding Eval... Nando
- RE: [CFCDev] Avoiding ... Seth MacPherson
- Re: [CFCDev] Avoi... Nando
- Re: [CFCDev] Avoiding Evaluate Whi... Aaron DC
