diff --git a/project.clj b/project.clj index 6c77b35..39d6539 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject api2smtp "1.0.4" +(defproject api2smtp "1.0.5" :description "Send emails through an Endpoint API" :url "https://github.com/tanrax/api2smtp" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" diff --git a/src/api2smtp/views/public.clj b/src/api2smtp/views/public.clj index 50f74ce..ba41ce1 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 (:smtp-to config) (:smtp-to config) (render-template "emails/contact.html" params) (render-template "emails/contact.txt" params)) + (send config (:smtp-to config) (:smtp-subject config) (render-template "emails/contact.html" params) (render-template "emails/contact.txt" params)) ;; Response OK (render-JSON req {:status "ok"})))