Skip to content

Instantly share code, notes, and snippets.

@wilig
Created March 5, 2010 05:42
Show Gist options
  • Save wilig/322481 to your computer and use it in GitHub Desktop.
Save wilig/322481 to your computer and use it in GitHub Desktop.
(import 'org.apache.commons.mail.SimpleEmail)
(doto (SimpleEmail.)
(.setHostName "smtp.gmail.com")
(.setSslSmtpPort "465")
(.setSSL true)
(.addTo "[email protected]")
(.setFrom "[email protected]" "Lucky Clojurian")
(.setSubject "Hello from clojure")
(.setMsg "Wasn't that easy?")
(.setAuthentication "[email protected]" "yourpassword")
(.send))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment