Can you get any introspection into the actual value of arguments.mail when this function is called (for example cfmail a cfdump of it to yourself)?

I don't use the plugin, but I do use cfimap to parse bounced messages. From looking through the source on github, I found that some parameters were case sensitive ("GenerateUniqueFilenames" & "AttachmentsUri" wouldn't work while "generateuniquefilenames" & "ATTACHMENTSURI" would); so it's possible that's what's going on here? It's a long shot.

Al Holden

On 4/29/2017 4:03 PM, Marcus F wrote:
I'm trying to use the SMTP plugin/extension, but I'm running into a slightly odd issue.

I created a mailHandler.cfc in the project root, and using smtpstart( "mainEmailInterface", "mailHandler" ) works.

The server starts up just fine, and when using a tool such as https://www.wormly.com/test-smtp-server, it reports fine, and running smtpstatus reports connections and emails properly.

mailHandler.cfc is just the example from the website:

  1. <cfcomponent>
  2.  <cffunction name="onmailfrom" access="public" returntype="boolean">
  3.    <cfargument name="email" required="yes">
  4.    <cfargument name="ip" required="yes">
  5.    <cfreturn true>
  6.  </cffunction>
  7.  <cffunction name="onmailto" access="public" returntype="boolean">
  8.    <cfargument name="email" required="yes">
  9.    <cfargument name="ip" required="yes">
  10.    <cfreturn true>
  11.  </cffunction>
  12.  <cffunction name="onMailAccept" access="public" returntype="any" output="no">
  13.    <cfargument name="mail" required="yes">
  14.  </cffunction>
  15. </cfcomponent>

I've tried adding <cfset fileWriteLine( expandPath("test.txt"), serializeJson(arguments.mail) )> to onMailAccept, but nothing.
I've set <cfreturn false> in onmailfrom() and emails still go through.

(Yes, I restarted the server between the changes)

I just can't figure out what's going on.

Anyone got a suggestion?
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to