https://gist.github.com/sritchie/9191297
You can figure out the requires from the namespace declaration, I think. I use the conf namespace to get my API key (toggled for prod and dev), and "collectify" is just this:
(defn collectify [obj]
(cond (nil? obj) []
(or (sequential? obj) (instance? List obj)) obj
:else [obj]))
It's not the full API, of course, but it should get you going.
The Dude (Abides) <mailto:[email protected]> February 24, 2014 3:33 AMHi, I'm new to clojure and have got a productive handle on CRUD, sessions, routing, writing functions. Last couple things are email delivery, image processing (resizing).So I looked on the clojure-toolbox site for email delivery libs with smtp authentication for a Mandrill acct fo transactional emails. I've used Mandrill in other langs right away zero glitch. Here's the results thus far in Clojure as a frame of reference for web domain use 2014:POSTAL https://github.com/drewr/postal#encryption-gmail-example Doesn't deliver. Tried number of examples in the docs. MAILER https://github.com/clojurewerkz/mailerWorked briefly, but not via Mandrill, no emails reached there. Authentication settings have no impact, uses Postal above lib for delivery. Tried number of examples in the docs.CLJ MAIL https://github.com/MayDaniel/clj-mail Out of date syntax.I googled and found a couple more in the quest to avoid having to do this via java heaven forbid:MMEmail http://blog.8thlight.com/micah-martin/2010/04/21/mmemail-my-first-clojure-open-source-contribution.htmlSays cannot connect to port 25 although my settings specify port 587 for MandrillPOSTMARK http://sjl.bitbucket.org/clojure-postmark/Transactional email delivery service with a clojure lib. Will create an acct in morning and try it out.Doe anyone know of any other smooth workable out the gate solutions for email delivery?-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected]Note that posts from new members are moderated - please be patient with your first post.To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en ---You received this message because you are subscribed to the Google Groups "Clojure" 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/groups/opt_out.
-- Sam Ritchie (@sritchie) Paddleguru Co-Founder 703.863.8561 www.paddleguru.com <http://www.paddleguru.com/>Twitter <http://twitter.com/paddleguru>// Facebook <http://facebook.com/paddleguru>
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en--- You received this message because you are subscribed to the Google Groups "Clojure" 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/groups/opt_out.
<<inline: compose-unknown-contact.jpg>>
