From 5bc97808774408ac8e767e7fcf68abd4cff24093 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Thu, 22 Feb 2018 15:48:14 +0100 Subject: [PATCH] send mail service --- index.ls | 3 +++ info/sendmail.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.ls b/index.ls index 3e7508e..31a733f 100644 --- a/index.ls +++ b/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") }) diff --git a/info/sendmail.lua b/info/sendmail.lua index 5c819c9..522d46a 100644 --- a/info/sendmail.lua +++ b/info/sendmail.lua @@ -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