Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Cognician/clj-madmimi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-madmimi

A Clojure library to send mail with the Mad Mimi API

Installation

Add [clj-madmimi "0.1.2"] to your Leiningen project's dependencies.

On clojars at https://clojars.org/clj-madmimi.

Usage

;; grab the namespace
(use 'clj-madmimi.core)

;; grab a ready-to-use sending function
(def mm (clj-madmimi.core/make-mad-mimi
          "your api key"
          "your username"
          "your from address"))

;; prepare your mail
(def message {:promotion "MadMimi promotion"
              :from "Your registered MadMimi originator"
              :to "To address"
              :subject "Subject"
              :html "Your email's html"})

;; send!
(def send-result (mm message))

;; inspect result from MadMimi API
(print send-result)

License

Copyright © 2012 Cognician Software (Pty) Ltd.

With thanks to Steve Losh for clojure-postmark.

Distributed under the Eclipse Public License, the same as Clojure.

About

Clojure interface for Mad Mimi email service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published