Skip to content

Commit

Permalink
email_status set to waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
markjcrane authored Aug 31, 2020
1 parent b7d52fe commit d3f1bfc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/scripts/resources/scripts/resources/functions/send_mail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ if (email_method == 'queue') then
end
local email_subject = email_message[1];
local email_body = email_message[2] or '';
local email_status = 'waiting';

api = freeswitch.API();
local email_queue_uuid = api:executeString("create_uuid");
Expand All @@ -75,13 +76,13 @@ if (email_method == 'queue') then
sql = sql .. " :email_status ";
sql = sql .. ") ";
local params = {
email_queue_uuid = email_queue_uuid;
email_queue_uuid = email_queue_uuid;
domain_uuid = domain_uuid;
email_from = email_from;
email_to = email_address;
email_subject = email_subject;
email_body = email_body;
email_status = email_type;
email_from = email_from;
email_to = email_address;
email_subject = email_subject;
email_body = email_body;
email_status = email_status;
}
db:query(sql, params);

Expand Down

0 comments on commit d3f1bfc

Please sign in to comment.