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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to