Add new config

This commit is contained in:
Andros Fenollosa 2020-06-11 18:34:22 +02:00
parent a0adf79420
commit 271ea0470b
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
:dependencies [;; Clojure
[org.clojure/clojure "1.10.1"]
;; Tadam core
[tadam-core "0.4.1"]
[tadam-core "0.4.2"]
;; HTTP Server
[ring "1.8.0"]
;; Ring middleware that prevents CSRF attacks

View File

@ -16,7 +16,7 @@
:email (-> json :email)
:message (-> json :message)}]
;; Send email
(send config "to@email.com" "Contact" (render-template "emails/contact.html" params) (render-template "emails/contact.txt" params))
(send config (:smtp-to config) (:smtp-to config) (render-template "emails/contact.html" params) (render-template "emails/contact.txt" params))
;; Response OK
(render-JSON req {:status "ok"})))