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

fix send mail

This commit is contained in:
lxsang 2020-06-17 19:12:49 +02:00
parent d15ab7dfec
commit ac9f56b86d

View File

@ -21,7 +21,7 @@ function ServiceController:sendmail()
fail("unknown request") fail("unknown request")
end end
local rq = (JSON.decodeString(REQUEST.json)) local rq = (JSON.decodeString(REQUEST.json))
local to = "xsang.le@gmail.com" local to = "mrsang@lxsang.me"
local from = "From: " .. rq.email .. "\n" local from = "From: " .. rq.email .. "\n"
local suject = "Subject: " .. rq.subject .. "\n" local suject = "Subject: " .. rq.subject .. "\n"
local content = "Contact request from:" .. rq.name .. "\n Email: " .. rq.email .. "\n" .. rq.content .. "\n" local content = "Contact request from:" .. rq.name .. "\n Email: " .. rq.email .. "\n" .. rq.content .. "\n"