Back

postal-appender (clj)

(source)

function

(postal-appender postal-config & [{:keys [subject-len body-len subject-fn body-fn], :or {subject-len 150, subject-fn (partial default-subject-fn {:max-len (enc/as-?int subject-len)}), body-fn (partial default-body-fn {:max-len (enc/as-?int body-len)})}}])
Returns a Postal email appender. (postal-appender ^{:host "mail.isp.net" :user "jsmith" :pass "sekrat!!1"} {:from "Bob's logger <me@draines.com>" :to "foo@example.com"})

Examples