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 dc2a637c54
commit 2a5c69f18f

View File

@@ -58,22 +58,22 @@
--send the email
if (file == nil) then
freeswitch.email("",
"",
freeswitch.email(to,
to,
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
body
);
else
if (convert_cmd == nil) then
freeswitch.email("",
"",
freeswitch.email(to,
to,
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
body,
file
);
else
freeswitch.email("",
"",
freeswitch.email(to,
to,
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
body,
file,