Skip to content

Instantly share code, notes, and snippets.

@kylemacey
Created September 25, 2013 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemacey/6704303 to your computer and use it in GitHub Desktop.
Save kylemacey/6704303 to your computer and use it in GitHub Desktop.
<cfif thisTag.ExecutionMode is 'end'>
<cfset THISTAG.Content = THISTAG.GeneratedContent />
<cfset THISTAG.GeneratedContent = "" />
<cfparam name="to" default="#attributes.to#" />
<cfparam name="from" default="#attributes.from#" />
<cfparam name="subject" default="#attributes.subject#" />
<cfparam name="cc" default="" />
<cfparam name="bcc" default="" />
<cfif structKeyExists(attributes,"cc")>
<cfset cc = attributes.cc />
</cfif>
<cfif structKeyExists(attributes,"bcc")>
<cfset bcc = attributes.bcc />
</cfif>
<cfscript>
dynService = application._coldspring_bean_factory.getBean('dynService');
dynService.send(
to = to,
from = from,
subject = subject,
cc = cc,
bcc = bcc,
body = THISTAG.Content
);
</cfscript>
Email Sent!
</cfif>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment