VBScript → Lua
This function sends an email from a configurable email address.
PBXScript.SendEMail bstrSender, bstrReplyTo, strRecipients, bstrCC, bstrBCC, bstrSubject, bstrBody,bstrAttachmentFile, bstrAttachmentMimeType, bIsVoicemail
This function returns an integer value of PBXSuccess (0) on success. See list of defined return values.
Beside this function, there is also a PBXCall.SendEMail function, with much less parameters.
Parameters
bstrSender
The EMail "From" field. Must be a valid SMTP mail address, e.g. smith@example.com
bstrReplyTo
The EMail "ReyplTo" field. Must be a valid SMTP mail address, e.g. smith@example.com
bstrRecipients
The EMail "To" field. Must be a valid SMTP mail address, e.g. smith@example.com, or a list of such addresses, separated by ; (semicolon).
bstrCC
The EMail "CC" field. Must be a valid SMTP mail address, e.g. smith@example.com, or a list of such addresses, separated by ; (semicolon).
bstrBCC
The EMail "BCC" field. Must be a valid SMTP mail address, e.g. smith@example.com, or a list of such addresses, separated by ; (semicolon).
bstrSubject
The EMail "Subject" field.
bstrBody
The EMail "Body" field.
bstrAttachmentFile
The name of a file to be attached to the email.
bstrAttachmentMimeType
The Mime trype of the attached file. Default: "" (empty string)
bIsVoicemail
Enable the voicemail signalling in the receivers SwyxIt! client or on his phone. Default: False
Please note: Even if unicode characters are possible within VBScript strings, use only SMTP compatible characters.
By Tom Wellige