Add 'to' variable to the first two parameters for freeswitch.email.
This commit is contained in:
parent
dc2a637c54
commit
2a5c69f18f
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue