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 + })