I think I'll write a blog post about setting up email with OpenBD, once
that hurdle was cleared it was pretty smooth sailing, including MX domain
settings, DB to store emails, etc.
On Sunday, April 30, 2017 at 12:26:19 AM UTC-4, Al Holden wrote:
>
> Nice to know!
>
> This aligns with other sections of code I've found in the email category
> in which the developer apparently didn't "de-case" the parameter or
> argument names prior to processing - in the OpenBD Java source. In my own
> CFML, I've added comments to remind me when I find them.
>
> If I were smart and had time, I suppose I could do a pull request with AW
> to fix them myself. But I'm dumb and don't. ;-]
>
> Al
>
> On 4/29/2017 8:30 PM, Marcus F wrote:
>
> I stand corrected!
>
> It was a case of case sensitivity.
>
> I had mailHandler instead of mailhandler, I haven't looked at the details,
> but I'm getting all the console statements I was expecting.
>
> Thanks Al
>
> 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].
>> 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] <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.