Jump to content

- PBXScript

- # PBXScript.SendEMail()

  Followers 0

  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

  - May 22, 2022
  Share
  Share
  Followers 0

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.