0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Add better logging on sendmail task

This commit is contained in:
Andrey Antukh 2023-10-05 13:45:13 +02:00 committed by Andrés Moya
parent a421e39b6f
commit b6a312815c

View file

@ -311,6 +311,12 @@
^String (::password cfg))
(let [^MimeMessage message (create-smtp-message cfg session params)]
(l/dbg :hint "sendmail"
:id (:id params)
:to (:to params)
:subject (str/trim (:subject params))
:body (str/join "," (map :type (:body params))))
(.sendMessage ^Transport transport
^MimeMessage message
(.getAllRecipients message))))))