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