Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail

Extremely basic Clojure wrapper for javax.mail. Only supports uploading messages at the moment!

Installation

Leiningen dependency:

[zsau/mail "0.1.1"]

Usage

(def imap {:host "imap.example.com"
           :port 993 ; optional (default: protocol-dependent)
           :user "nobody"
           :password "hunter2"
           :protocol "imaps"})] ; optional (default: "imaps")

(def folder {:name "Misc"
             :create true}) ; optional (default: false)

(def message {:from "jsmith@example.com" ; alternatively: (address "jsmith@example.com" "John Smith")
              :to "nobody@example.com"
              :subject "Hello"
              :body "Hello, world!"
              :date (java.util.Date.)}) ; optional (default: now)

(with-store [store imap]
  (append-messages store folder [message ...])))

License

Released under the MIT License.

About

Extremely basic Clojure wrapper for javax.mail.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages