Fixbug subject

This commit is contained in:
Andros Fenollosa 2020-06-11 19:47:56 +02:00
parent da0d8c07ca
commit 46344044e9
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"})))