A thin, partial Clojure wrapper around the Amazon SES Java API. I wrote this because I wanted to rely on instance profiles for AWS access control instead of using Postal and having to configure SMTP credentials client-side.
Only the sendEmail
method is wrapped at the moment.
(send-email client-opts
"[email protected]"
"[email protected]"
"You are our millionth customer!"
{:html-body "<html>Awesome html content</html>"
:text-body "Boring text content"})
Where client-opts may be:
;; Using the default provider chain falls back to the instance profile
{:provider (DefaultAWSCredentialsProviderChain.)}
;; Or use keys directly
{:access-key "..." :secret-key "..."}
;; The region can also be specified
{:region :eu-west-1}
Copyright © 2015-2017 Johannes Staffans
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.