I am writing a custom tag for CFMAIL. I need to handle certain emails differently then the standard CFMAIL. I am using the following post as a staring point - http://www.cfhero.com/2011/11/creating-environment-safe-wrapper-for.html
Before
<cfmail to="[email protected]" from="[email protected]" subject="This is only a test">
<cfmailparam name="Importance" value="high">
hello world</cfmail>
After Custom Tags
<cf_email to="[email protected]" from="[email protected]" subject="This is only a test">
<cf_emailparam name="Importance" value="high">
hello world</cf_email>
Everything working correctly for the custom CFMAIL and CFMAILPARAM but my question is how to handle "CFMAILPART". When using the existing CFMAILPART within the new tags, CF throws an error.
<cf_email to="[email protected]" from="[email protected]" subject="This is only a test">
<cf_emailparam name="Importance" value="high">
<cfmailpart type="text">Text</cfmailpart>
<cfmailpart type="html">HTML</cfmailpart></cf_email>
Detail: The tag must be nested inside a cfmail tag.
Message: Context validation error for tag cfmailpart.
I am striking out with my ideas and I am failing finding any help docs. Any help or starting points would most appreciated.
Thanks in advance.
cfmail? It doesn't seem like you are really doing anything different. - Scott Stroz