-
- 353 Posts
A big thumbs up for sharing!
Can't believe nobody responded to your post.
It worked right out of the box. I'm going to play around with some api features not covered sofar and let you know how it turns out.
Cheers,
pepebe
-
- 833 Posts
Sweet! I'll definitely give it a try.
Thanks for the good work.
A MODx Fanatic
I've simply set up the MODX email settings to use Mandrill's SMTP API, and then just use the normal email hook
I know this is an old thread but it would be awesome to be able to turn this into a proper extra that could be installed from the Package Manager. If you're not interested in doing that, I am sure I or someone else could make it happen. I also think the files should be stored in /core/components/sendMandrill/mandrill/ rather than assets. This could be even created by using PackMan which is an Extra for building simple MODX Packages. Great work nonetheless. Thanks for this.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
- 24,544 Posts
FYI, there is also the MandrillX class, though you'd still need a custom FormIt postHook to run it. Notify has been using it for some time and it's very reliable.
http://modx.com/extras/package/mandrillx
The next step would be a way to use Mandrill's REST api from MODX instead of using SMTP. Many cPanel hosts do not allow remote SMTP for some reason.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
- 24,544 Posts
Quote from: smashingred at Apr 13, 2015, 05:17 PMThe next step would be a way to use Mandrill's REST api from MODX instead of using SMTP. Many cPanel hosts do not allow remote SMTP for some reason.
The MandrillX class does that, but it would be nice if were built into MODX so you could have that option instead of SMTP just by setting a System Setting.
It's hard to say how difficult it would be. It might just be a matter of rewriting modPhpMailer to respond to a new System Setting in addition to the SMTP System Setting.
-
- 58 Posts
I'll have a look at creating a package for this in the next few days.. when I originally made it I wasn't sure if anyone else would find it useful so I didn't bother with a package.
Also thanks for the tip re the proper path..