From d353cc648af8db442ff5b3ceaccfae5b6cdad592 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 27 Dec 2020 11:19:14 +0100 Subject: [PATCH] tzzh mail example --- examples/tzzh_mail.clj | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/tzzh_mail.clj diff --git a/examples/tzzh_mail.clj b/examples/tzzh_mail.clj new file mode 100644 index 0000000..337ae86 --- /dev/null +++ b/examples/tzzh_mail.clj @@ -0,0 +1,16 @@ +(require '[babashka.pods :as pods]) +(pods/load-pod 'tzzh/mail "0.0.2") +(require '[pod.tzzh.mail :as m]) + +(m/send-mail {:host "smtp.gmail.com" + :port 587 + :username "kylian.mbappe@gmail.com" + :password "kylian123" + :subject "Subject of the email" + :from "kylian.mbappe@gmail.com" + :to ["somebody@somehwere.com"] + :cc ["somebodyelse@somehwere.com"] + :text "aaa" ;; for text body + :html " kajfhajkfhakjs " ;; for html body + :attachments ["./do-everything.clj"] ;; paths to the files to attch + })