Add new config
This commit is contained in:
parent
a0adf79420
commit
271ea0470b
@ -6,7 +6,7 @@
|
|||||||
:dependencies [;; Clojure
|
:dependencies [;; Clojure
|
||||||
[org.clojure/clojure "1.10.1"]
|
[org.clojure/clojure "1.10.1"]
|
||||||
;; Tadam core
|
;; Tadam core
|
||||||
[tadam-core "0.4.1"]
|
[tadam-core "0.4.2"]
|
||||||
;; HTTP Server
|
;; HTTP Server
|
||||||
[ring "1.8.0"]
|
[ring "1.8.0"]
|
||||||
;; Ring middleware that prevents CSRF attacks
|
;; Ring middleware that prevents CSRF attacks
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
:email (-> json :email)
|
:email (-> json :email)
|
||||||
:message (-> json :message)}]
|
:message (-> json :message)}]
|
||||||
;; Send email
|
;; 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
|
;; Response OK
|
||||||
(render-JSON req {:status "ok"})))
|
(render-JSON req {:status "ok"})))
|
||||||
|
Loading…
Reference in New Issue
Block a user