Created
September 25, 2013 18:58
-
-
Save kylemacey/6704303 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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