Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2dc00d7
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/pom.xml | ||
*jar | ||
/lib | ||
/classes | ||
/native | ||
/.lein-failures | ||
/checkouts | ||
/.lein-deps-sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# simple-email | ||
|
||
`simple-email` is a Clojure wrapper around the Apache Commons Email. | ||
|
||
Right now it only supports sending plaintext emails; in the future, it | ||
may be extended to support HTML emails (but I hate HTML email so probably | ||
not ;)). | ||
|
||
## Usage | ||
|
||
```clojure | ||
(def mail-host "mail.dropsonde.net") | ||
(def mail-port 587) | ||
(def mail-user "pollard") | ||
(def mail-pass "rickson") | ||
(def mail-from "pollard@dropsonde.net") | ||
(def mail-ssl true) | ||
|
||
|
||
(def dropsonde-server | ||
(simple-email/mail-server | ||
mail-host | ||
mail-port | ||
mail-ssl | ||
mail-user | ||
mail-pass | ||
mail-from)) | ||
|
||
(send-to dropsonde-server | ||
"boone@dropsonde.net" | ||
"Witty Subject Line" | ||
"Your email body goes here.") | ||
|
||
(send-mail [ "pollard@dropsonde.net" "bigend@drosonde.net" ] | ||
"This is an email." | ||
"Further explanation goes here.") | ||
``` | ||
|
||
## License | ||
|
||
`simple-email` is released under the ISC license. | ||
|
||
``` | ||
The ISC license: | ||
Copyright (c) 2011 Kyle Isom <coder@kyleisom.net> | ||
|
||
Permission to use, copy, modify, and distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(defproject simple-email "0.1.0-DEV" | ||
:description "Clojure wrapper around Apache Commons Email" | ||
:dependencies [[org.clojure/clojure "1.3.0"] | ||
[org.apache.commons/commons-email "1.2"]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(ns simple-email.core) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(ns simple-email.test.core | ||
(:use [simple-email.core]) | ||
(:use [clojure.test])) | ||
|
||
(deftest replace-me ;; FIXME: write | ||
(is false "No tests have been written.")) |