Clojure Amazon SES client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/ses_mailer
test/ses_mailer/tests
.gitignore
LICENSE
README.md
project.clj

README.md

ses-mailer

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.

Clojars Project

Usage

(send-email client-opts
  "no-reply@company.com"
  "lucky-customer@me.com"
  "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}

License

Copyright © 2015-2017 Johannes Staffans

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.