From 528ec59e7b2a30a43df0838ccc39b185522e3c3f Mon Sep 17 00:00:00 2001 From: lxsang Date: Tue, 22 Sep 2020 18:23:57 +0200 Subject: [PATCH] add To to sendmail function --- talk/controllers/CommentController.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talk/controllers/CommentController.lua b/talk/controllers/CommentController.lua index 8383592..e67d5ad 100644 --- a/talk/controllers/CommentController.lua +++ b/talk/controllers/CommentController.lua @@ -10,7 +10,7 @@ local function process_md(input) end local function sendmail(to, subject, content) - local from = "From: contact@iohub.dev\n" + local from = "From: contact@iohub.dev\nTo: " .. to .. "\n" local suject = "Subject: " .. subject .. "\n" local cmd = 'echo "' .. utils.escape(from .. suject .. content) ..