Add new config
This commit is contained in:
parent
a0adf79420
commit
271ea0470b
@ -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
|
||||
|
@ -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"})))
|
||||
|
Loading…
Reference in New Issue
Block a user