Skip to content

Commit

Permalink
Merge pull request #267 from matthew4321/log-email-cf8
Browse files Browse the repository at this point in the history
Fixed email logging in CF8
  • Loading branch information
Adam Tuttle committed Mar 20, 2015
2 parents f992792 + 6133667 commit 31bc506
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bonus/LogToEmail.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
<cffunction name="saveLog">
<cfargument name="exception" />

<cfset var local = StructNew() />

<cfset variables.config = removeEmailPrefix(variables.config)>

<!--- to conform to the cfmail attribute name and be backward compatible with emailSubj --->
<cfset variables.config.subject = variables.config.subj>

<cfset var attributeCollection = variables.config>
<cfset local.attributeCollection = variables.config>

<cfmail attributeCollection="#attributeCollection#">
<cfmail attributeCollection="#local.attributeCollection#">
<cfif variables.config.type eq "text">
Exception Report

Expand Down

0 comments on commit 31bc506

Please sign in to comment.