Add 'to' variable to the first two parameters for freeswitch.email.

This commit is contained in:
markjcrane
2015-12-15 21:10:18 -07:00
parent 8518cc98ca
commit 401fbb56e2
+6 -6
View File
@@ -58,22 +58,22 @@
--send the email --send the email
if (file == nil) then if (file == nil) then
freeswitch.email("", freeswitch.email(to,
"", to,
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject, "To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
body body
); );
else else
if (convert_cmd == nil) then if (convert_cmd == nil) then
freeswitch.email("", freeswitch.email(to,
"", to,
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject, "To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
body, body,
file file
); );
else else
freeswitch.email("", freeswitch.email(to,
"", to,
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject, "To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
body, body,
file, file,