Skip to content

jstaffans/ses-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Clojure Amazon SES client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published