Update send_email.lua
This commit is contained in:
@@ -163,9 +163,6 @@
|
|||||||
end
|
end
|
||||||
|
|
||||||
--prepare the subject
|
--prepare the subject
|
||||||
--local f = io.open(file_subject, "r");
|
|
||||||
--local subject = f:read("*all");
|
|
||||||
--f:close();
|
|
||||||
subject = subject:gsub("${caller_id_name}", caller_id_name);
|
subject = subject:gsub("${caller_id_name}", caller_id_name);
|
||||||
subject = subject:gsub("${caller_id_number}", caller_id_number);
|
subject = subject:gsub("${caller_id_number}", caller_id_number);
|
||||||
subject = subject:gsub("${message_date}", message_date);
|
subject = subject:gsub("${message_date}", message_date);
|
||||||
@@ -179,9 +176,6 @@
|
|||||||
subject = '=?utf-8?B?'..base64.encode(subject)..'?=';
|
subject = '=?utf-8?B?'..base64.encode(subject)..'?=';
|
||||||
|
|
||||||
--prepare the body
|
--prepare the body
|
||||||
--local f = io.open(file_body, "r");
|
|
||||||
--body = f:read("*all");
|
|
||||||
--f:close();
|
|
||||||
body = body:gsub("${caller_id_name}", caller_id_name);
|
body = body:gsub("${caller_id_name}", caller_id_name);
|
||||||
body = body:gsub("${caller_id_number}", caller_id_number);
|
body = body:gsub("${caller_id_number}", caller_id_number);
|
||||||
body = body:gsub("${message_date}", message_date);
|
body = body:gsub("${message_date}", message_date);
|
||||||
@@ -203,13 +197,9 @@
|
|||||||
else
|
else
|
||||||
body = body:gsub("${message}", "<a href='"..link_address.."/app/voicemails/voicemail_messages.php?action=autoplay&id="..db_voicemail_uuid.."&uuid="..uuid.."'>"..text['label-listen'].."</a>");
|
body = body:gsub("${message}", "<a href='"..link_address.."/app/voicemails/voicemail_messages.php?action=autoplay&id="..db_voicemail_uuid.."&uuid="..uuid.."'>"..text['label-listen'].."</a>");
|
||||||
end
|
end
|
||||||
--body = body:gsub("<", "");
|
|
||||||
--body = body:gsub(">", "");
|
|
||||||
--body = body:gsub(" ", " ");
|
--body = body:gsub(" ", " ");
|
||||||
--body = body:gsub("%s+", "");
|
--body = body:gsub("%s+", "");
|
||||||
--body = body:gsub(" ", " ");
|
--body = body:gsub(" ", " ");
|
||||||
--body = body:gsub("\n", "");
|
|
||||||
--body = body:gsub("\n", "");
|
|
||||||
body = trim(body);
|
body = trim(body);
|
||||||
|
|
||||||
--prepare file
|
--prepare file
|
||||||
|
|||||||
Reference in New Issue
Block a user