From 46344044e918170f4b9431e3ff9d55c07cfb8e94 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 11 Jun 2020 19:47:56 +0200 Subject: [PATCH] Fixbug subject --- project.clj | 2 +- src/api2smtp/views/public.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"})))