Wrong variable in freeswitch.email
https://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.email same as my other pull request
This commit is contained in:
@@ -59,21 +59,21 @@
|
|||||||
--send the email
|
--send the email
|
||||||
if (file == nil) then
|
if (file == nil) then
|
||||||
freeswitch.email(to,
|
freeswitch.email(to,
|
||||||
to,
|
from,
|
||||||
"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(to,
|
freeswitch.email(to,
|
||||||
to,
|
from,
|
||||||
"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(to,
|
freeswitch.email(to,
|
||||||
to,
|
from,
|
||||||
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
|
"To: "..to.."\nFrom: "..from.."\nX-Headers: "..headers.."\nSubject: "..subject,
|
||||||
body,
|
body,
|
||||||
file,
|
file,
|
||||||
|
|||||||
Reference in New Issue
Block a user