1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00

add To to sendmail function

This commit is contained in:
lxsang 2020-09-22 18:23:57 +02:00
parent 25e75badc1
commit 528ec59e7b

View File

@ -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) ..