Hi,
Currently I send an email by specifying an e-mail template in the <view>
section of my event-handler xml.
This email-template contains my html, links to graphics,css includes etc in
a <cfsavecontent> block. Below that block I use a <cfmail> tag that has the
value of the <cfsavecontent> as the emailbody. So trhe email gets sent from
a view. Rather kludgy but it works.
Now I want to send e-mails from within a loop, that is in a controller. The
previous method is not usable here. Is the following possible:
within every the loop iteration
set text in the event scope - event.setvalue("text",<emailtext>);
render a view (or multiple views in case of layouts) The views access the
keys set in the loop;
use that rendered html as the body of the <cfmail> tag
So I can send multiple emails from within the controller, just have to
specify a special email layout.
I hope this is clear.
Most likely this is possible but I can't find examples or entries in the
howto that describe this.
Thanks,
Marc
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en