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:
parent
25e75badc1
commit
528ec59e7b
@ -10,7 +10,7 @@ local function process_md(input)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function sendmail(to, subject, content)
|
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 suject = "Subject: " .. subject .. "\n"
|
||||||
|
|
||||||
local cmd = 'echo "' .. utils.escape(from .. suject .. content) ..
|
local cmd = 'echo "' .. utils.escape(from .. suject .. content) ..
|
||||||
|
Loading…
Reference in New Issue
Block a user