1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-26 17:38:21 +01:00

send mail service

This commit is contained in:
Xuan Sang LE 2018-02-22 15:48:14 +01:00
parent 68f2757c00
commit 5bc9780877
2 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@
if(r.error)
alert(r.error)
else
{
observable.trigger("exit")
alert("Thank")
}
}).fail(function(){
alert("Service unavailable at the moment")
})

View File

@ -10,7 +10,7 @@ local content = "Contact request from:"..rq.name.."\n Email:"..rq.email.."\n"..r
local cmd = 'echo "'..utils.escape(from..suject..content)..'"| sendmail '..to
print(cmd)
--print(cmd)
local r = os.execute(cmd)
if r then