Lua → VBScript SwxWare v13.10
This function sends an email containing the given information.
local nReturn = PBXScript.SendEMail(sSender, sReplyTo, sRecipients, sCC, sBCC, sSubject, sBody, sAttachmentFile, sAttachmentMimeType, bIsVoicemail)
This function returns a PBXResult value of PBXSuccess or PBXFailure.
You can also use the PBXCall.SendEMail() function if you don't need all these additional standard email fields like CC and BCC.
Parameters
sSender
string. The EMail "From" field.
sReplyTo
string. The EMail "ReplyTo" field.
sRecipients
string. The EMail "To" field. Can contain multiple email addresses, separated by ";" (semicolon).
sCC
string. The EMail "CC" field.
sBCC
string. The EMail "BCC" field.
sSubject
string. The EMail "Subject" field.
sBody
string. The EMail "Body" field.
sAttachmentFile
string. Filename (incl. complete path) to attach to this email.
sAttachmentMimeType
string. Mime Type fo attached file.
bIsVoicemail
boolean. Flag this email as SwyxWare "voicemail" via X-Header.

By Tom Wellige