[send_mail] return freeswitch.email Boolean value (#6231)

This commit is contained in:
agree 2022-01-09 10:53:40 -05:00 committed by GitHub
parent a432996055
commit e3e41624e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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