diff --git a/project.clj b/project.clj index 99719d5..179db14 100644 --- a/project.clj +++ b/project.clj @@ -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 diff --git a/src/api2smtp/views/public.clj b/src/api2smtp/views/public.clj index a6cde76..50f74ce 100644 --- a/src/api2smtp/views/public.clj +++ b/src/api2smtp/views/public.clj @@ -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"})))