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:
parent
68f2757c00
commit
5bc9780877
3
index.ls
3
index.ls
@ -66,7 +66,10 @@
|
||||
if(r.error)
|
||||
alert(r.error)
|
||||
else
|
||||
{
|
||||
observable.trigger("exit")
|
||||
alert("Thank")
|
||||
}
|
||||
}).fail(function(){
|
||||
alert("Service unavailable at the moment")
|
||||
})
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user