Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kisom committed Jun 26, 2012
0 parents commit 2dc00d7
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
/pom.xml
*jar
/lib
/classes
/native
/.lein-failures
/checkouts
/.lein-deps-sum
59 changes: 59 additions & 0 deletions README
@@ -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.

```
4 changes: 4 additions & 0 deletions project.clj
@@ -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"]])
1 change: 1 addition & 0 deletions src/simple_email/core.clj
@@ -0,0 +1 @@
(ns simple-email.core)
6 changes: 6 additions & 0 deletions test/simple_email/test/core.clj
@@ -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."))

0 comments on commit 2dc00d7

Please sign in to comment.