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

Merge pull request #23 from lxsang/master

add To to sendmail function
This commit is contained in:
Xuan Sang LE 2020-09-22 18:24:50 +02:00 committed by GitHub
commit fda4a23943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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