mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add 'to' variable to the first two parameters for freeswitch.email.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user