As far as I can tell, the functions aren't being called.

I've tried both cfmail and console(), with variations on the function names 
such as onMailAccept, onmailaccept, onMailFrom and onmailfrom, etc. no go 
so far.



On Saturday, April 29, 2017 at 10:13:09 PM UTC-4, Al Holden wrote:
>
> 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. 
>    3.  <cffunction name="onmailfrom" access="public" returntype="boolean">
>    4.    <cfargument name="email" required="yes">
>    5.    <cfargument name="ip" required="yes">
>    6.    <cfreturn true>
>    7.  </cffunction>
>    8. 
>    9. 
>    10.  <cffunction name="onmailto" access="public" returntype="boolean">
>    11.    <cfargument name="email" required="yes">
>    12.    <cfargument name="ip" required="yes">
>    13.    <cfreturn true>
>    14.  </cffunction>
>    15. 
>    16. 
>    17.  <cffunction name="onMailAccept" access="public" returntype="any" 
>    output="no">
>    18.    <cfargument name="mail" required="yes">
>    19. 
>    20.  </cffunction>
>    21. 
>    22. </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] <javascript:>.
> 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