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:
parent
d15ab7dfec
commit
ac9f56b86d
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user