Back

send-message (clj)

(source)

function

(send-message {:keys [host], :as server} {:keys [from to bcc subject body], :or {to "", subject ""}, :as msg}) (send-message msg)

Examples

acmeism/RosettaCodeData
(require '[postal.core :refer [send-message]])

(send-message {:host "smtp.gmail.com"
               :ssl true
               :user your_username
               :pass your_password}
              {:from "you@yourdomain.com"
               :to ["your_friend@example.com"]
               :cc ["bob@builder.com" "dora@explorer.com"]
               :subject "Yo"
               :body "Testing."})
aliostad/deep-learning-lang-detection

(ns ^{:author "Ikenna Nwaiwu"} memjore.views.email
    (:require [memjore.views.common :as common])
    (:use [noir.core :only [defpage]]
          [hiccup.form :only [form-to text-area submit-button]]
          [postal.core :only [send-message]]))


(defpage emailcontroller [:post "/manage/emailcontroller"] {:keys [emailmessage]}
  (let [message  emailmessage]
    (send-message message))
  (common/layout
   [:p emailmessage]))