Skip to content
/ mail Public

Extremely basic Clojure wrapper for javax.mail.

License

Notifications You must be signed in to change notification settings

zsau/mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

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 "[email protected]" ; alternatively: (address "[email protected]" "John Smith")
              :to "[email protected]"
              :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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published