The FORM.transmission variable is always blank when
the POSTFail template runs. For example, when I receive an failure
notification it says:
Your message to [EMAIL PROTECTED] could not be delivered. The error encountered is shown
below:
BUT THERE IS NOTHING BELOW. Here's my
postfail.cfm file.
<inLog TEXT="*** STARTING POSTFAIL
TEMPLATE ***">
<CFSET QuoteOrigBytes = 1000>
<CFIF Len(form.FailedServer) AND IsNumeric( Left(form.MailServerResponse, 3) )>
<CFSET Transmission = Replace(form.Transmission, "#Chr(13)##Chr(10)#", "", "ALL")>
<CFSET ErrorMsg = "I said """ & variables.Transmission & """ and the " & form.FailedServer & " server responded:
" & form.MailServerResponse & "
The entire transaction proceeded as follows:
" & form.Transaction
>
<CFELSE>
<CFSET ErrorMsg = form.Transmission>
</CFIF>
<CFIF FileExists(form.EmailFile)> <!--- If mail file exists --->
<CFFILE ACTION="" FILE="#form.EmailFile#" VARIABLE="OrigMessageText">
<CFSET OrigMessageText = Left(OrigMessageText, variables.QuoteOrigBytes)>
<CFSET REQUEST.attachFile = "#FORM.EmailFile#">
<CFELSE>
<CFSET OrigMessageText = "**** Error: Could not open original file ****">
<CFSET REQUEST.attachFile = "">
</CFIF>
<CFSET NotificationBody = "
**Do not reply to this email**
<CFSET QuoteOrigBytes = 1000>
<CFIF Len(form.FailedServer) AND IsNumeric( Left(form.MailServerResponse, 3) )>
<CFSET Transmission = Replace(form.Transmission, "#Chr(13)##Chr(10)#", "", "ALL")>
<CFSET ErrorMsg = "I said """ & variables.Transmission & """ and the " & form.FailedServer & " server responded:
" & form.MailServerResponse & "
The entire transaction proceeded as follows:
" & form.Transaction
>
<CFELSE>
<CFSET ErrorMsg = form.Transmission>
</CFIF>
<CFIF FileExists(form.EmailFile)> <!--- If mail file exists --->
<CFFILE ACTION="" FILE="#form.EmailFile#" VARIABLE="OrigMessageText">
<CFSET OrigMessageText = Left(OrigMessageText, variables.QuoteOrigBytes)>
<CFSET REQUEST.attachFile = "#FORM.EmailFile#">
<CFELSE>
<CFSET OrigMessageText = "**** Error: Could not open original file ****">
<CFSET REQUEST.attachFile = "">
</CFIF>
<CFSET NotificationBody = "
**Do not reply to this email**
Your message to " & form.SMTPTo & "
could not be delivered. The error encountered is shown below:
" &
variables.ErrorMsg
>
<CFSET SMTPTo = IIf( Len(form.FailTo), "form.FailTo", "form.SMTPFrom" )>
<inlog text="SMTPTO=<cfoutput>#VARIABLES.SMTPTo#</cfoutput>">
<inlog text="Header_To=<cfoutput>#FORM.header_From#</cfoutput>">
<inlog text="BODY=<cfoutput>#VARIABLES.NotificationBody#</cfoutput>">
<CFX_iMSMail
SMTPTO="#variables.SMTPTo#"
SMTPFROM="[EMAIL PROTECTED]"
HEADER_From="PTEmail Server <[EMAIL PROTECTED]>"
HEADER_To="#form.header_From#"
HEADER_Subject="Undeliverable Email"
BODY="#variables.NotificationBody#"
enablewordwrap="no">
result=accept
>
<CFSET SMTPTo = IIf( Len(form.FailTo), "form.FailTo", "form.SMTPFrom" )>
<inlog text="SMTPTO=<cfoutput>#VARIABLES.SMTPTo#</cfoutput>">
<inlog text="Header_To=<cfoutput>#FORM.header_From#</cfoutput>">
<inlog text="BODY=<cfoutput>#VARIABLES.NotificationBody#</cfoutput>">
<CFX_iMSMail
SMTPTO="#variables.SMTPTo#"
SMTPFROM="[EMAIL PROTECTED]"
HEADER_From="PTEmail Server <[EMAIL PROTECTED]>"
HEADER_To="#form.header_From#"
HEADER_Subject="Undeliverable Email"
BODY="#variables.NotificationBody#"
enablewordwrap="no">
result=accept
Please help,
Keith
|
This list server is Powered by iMS "The Swiss Army Knife of Mail Servers" This list is provided as a free service. Although we will try to address issues in a timely manner, support via this list is not guaranteed. If you require expedited support then a support contract is required. Support may be purchased from http://www.coolfusion.com/commerce. Details regarding support options may be reviewed at: http://www.coolfusion.com/SupportOptions.cfm. To leave this list please complete the form at http://www.coolfusion.com/Support/ Need an iMS Developer license? Sign up for a free license here: http://www.coolfusion.com/Developers/ List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/ Note: You are subscribed as [EMAIL PROTECTED] |
