From e3e41624e2602a316b5027792eeb9725978dff6e Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Sun, 9 Jan 2022 10:53:40 -0500 Subject: [PATCH] [send_mail] return freeswitch.email Boolean value (#6231) --- .../resources/scripts/resources/functions/send_mail.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scripts/resources/scripts/resources/functions/send_mail.lua b/app/scripts/resources/scripts/resources/functions/send_mail.lua index 0a52466ef7..b4f9676dbd 100644 --- a/app/scripts/resources/scripts/resources/functions/send_mail.lua +++ b/app/scripts/resources/scripts/resources/functions/send_mail.lua @@ -266,10 +266,11 @@ else "X-Headers: " .. xheaders if file then - freeswitch.email(address, from, mail_headers, body, file) + ok = freeswitch.email(address, from, mail_headers, body, file) else - freeswitch.email(address, from, mail_headers, body) + ok = freeswitch.email(address, from, mail_headers, body) end + return ok end end