All Projects → gws → Clj Mandrill

gws / Clj Mandrill

A Clojure implementation of the Mandrill API

Programming Languages

clojure
4091 projects

Labels

Projects that are alternatives of or similar to Clj Mandrill

Oh My Email
📪 可能是最小的 Java 邮件发送库了,支持抄送、附件、模板等功能。
Stars: ✭ 612 (+3725%)
Mutual labels:  email
Truemail
🚀 Configurable framework agnostic plain Ruby 📨 email validator/verifier. Verify email via Regex, DNS and SMTP. Be sure that email address valid and exists.
Stars: ✭ 717 (+4381.25%)
Mutual labels:  email
Dank Selfhosted
Automated solution for hosting email, web, DNS, XMPP, and ZNC on OpenBSD.
Stars: ✭ 800 (+4900%)
Mutual labels:  email
Imap
Object-oriented, fully tested PHP IMAP library
Stars: ✭ 678 (+4137.5%)
Mutual labels:  email
Sendgrid Go
The Official Twilio SendGrid Led, Community Driven Golang API Library
Stars: ✭ 710 (+4337.5%)
Mutual labels:  email
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (+4443.75%)
Mutual labels:  email
Teemo
A Domain Name & Email Address Collection Tool
Stars: ✭ 595 (+3618.75%)
Mutual labels:  email
Kanmail
📥 An email client that functions like a kanban board.
Stars: ✭ 833 (+5106.25%)
Mutual labels:  email
Memacs
What did I do on February 14th 2007? Visualize your (digital) life in Org-mode
Stars: ✭ 711 (+4343.75%)
Mutual labels:  email
Bootstrap Email
Bootstrap 4 (and soon 5) stylesheet, compiler, and inliner for responsive and consistent emails with the Bootstrap syntax you know and love.
Stars: ✭ 781 (+4781.25%)
Mutual labels:  email
Php Mime Mail Parser
A fully tested email parser for PHP 7.2+ (mailparse extension wrapper).
Stars: ✭ 687 (+4193.75%)
Mutual labels:  email
Deltachat Android
Email-based instant messaging for Android.
Stars: ✭ 705 (+4306.25%)
Mutual labels:  email
Python O365
A simple python library to interact with Microsoft Graph and Office 365 API
Stars: ✭ 742 (+4537.5%)
Mutual labels:  email
K 9
K-9 Mail – Open Source Email App for Android
Stars: ✭ 6,327 (+39443.75%)
Mutual labels:  email
Mailtrackerblocker
Email tracker, read receipt and spy pixel blocker plugin for macOS Apple Mail
Stars: ✭ 821 (+5031.25%)
Mutual labels:  email
Mailer
The Mailer component helps sending emails
Stars: ✭ 609 (+3706.25%)
Mutual labels:  email
Lettre
a mailer library for Rust
Stars: ✭ 713 (+4356.25%)
Mutual labels:  email
Sendgrid Csharp
The Official Twilio SendGrid Led, Community Driven C#, .NetStandard, .NetCore API Library
Stars: ✭ 835 (+5118.75%)
Mutual labels:  email
Node Dkim Key
DKIM (DomainKeys Identified Mail) Key
Stars: ✭ 5 (-68.75%)
Mutual labels:  email
Sup
A curses threads-with-tags style email client (mailing list: [email protected])
Stars: ✭ 780 (+4775%)
Mutual labels:  email

clj-mandrill

Status of clj-mandrill build (master branch). Status of clj-mandrill dependencies.

A Clojure library for consuming the Mandrill API.

Installation

Clojars Project

Documentation

API documentation

Usage

(ns your.app
  (:require [gws.mandrill.client :as client]
            [gws.mandrill.api.messages :as messages]))

; Create a default Mandrill client with your API key. You can also specify a map
; of clj-http parameters, but that's optional.
(def client (client/create "YOUR-SECRET-KEY"))
;(def client (client/create "YOUR-SECRET-KEY" {:socket-timeout 1000}))

; Build up an interesting message to send.
(def msg {:message {:to [{:email "[email protected]"
                          :name "Nobody"}]
                    :from_email "[email protected]"
                    :subject "This is a test"
                    :text "Really interesting text-only content."}})
; You can override the key per-request, per the Mandrill docs. This will
; override your client API key configuration.
;(def msg {:key "YOUR KEY"
;          :message {...}})

; Send the message using the configured Mandrill client.
; Functions are named in an attempt to be consistent with the Mandrill REST API
; endpoints.
(messages/send client msg)

Features

The entire Mandrill API version 1.0 is supported.

The API follows the Mandrill API conventions as closely as possible. In other words, messages calls are in the gws.mandrill.api.messages namespace, and the calls are lowercased functions in that namespace, such as gws.mandrill.api.messages/send.

Testing

Most of the tests are run against the actual Mandrill API, since Mandrill provides test API keys. In order to actually run the tests, you need to obtain a test API key. Once you’ve done this, you can supply the key as an environment variable:

# Be absolutely sure this is a test key, not your production key!
MANDRILL_TEST_API_KEY=YOURTESTKEY lein test

License

Copyright © 2014 Gordon Stratton

Licensed under the Apache License version 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].