I have begun work on a custom email plugin, and while looking at some others that are available to see how they went about things I noticed that all of the available plugins (at least that I have found so far) already have an entry in the email setup list, regardless of if you have downloaded the associated plugin for that service (ex. Sendgrid, Mailgun, etc).
So my questions is, if I have a custom email plugin, how exactly would I go about making it selectable / usable by the forum? Does it need to be present in the default email list? Is there a way to have my plugin inject itself into that list of providers or is there a way to override that list so that the forum knows not to use the credentials and settings in there, but instead use the ones in the plugin?
The only real switch I have found is the "Use an external email server to send emails", which I would imagine that if it is turned off, that would not be much help either.
If anyone has any insight on how the system works in regards to this and can point me in the right direction, I would appreciate it!
I was wondering if there's a simple way to add my custom fields (from the ns-custom-fields plugin) to the regular edit.tpl. I'm making a private forum aimed at professionals and would really love it if I could have everything in one place.
What I'm currently looking to add is Company, Title and possible some more in the future.
An idea I have is to just put them in the available form and then using the custom-fields "API" in the backend (on save) to store them separately.
Any ideas are welcome.
Sorry to tag you (@Nicolas, the creator) but I believe you can answer this question quite easily.
@pichalite I just tried it. Unfortunately, it didn't activate when I sent a message to my test account. (I had console.log dump out whatever the first param was)
This would've been great if it solved the problem, too.
Wow! So turns out it was a silly error on my part. I had tried the Error object previously, but it was while looking at a different part of the code... I was actually looking/changing the 'imagekit' case in the code and being stumped as to why I was still seeing the behavior as I explained. Anyhow, it is working as it should when passing in an Error object. Thanks for the extra insight!