Jump to content

- PBXCall

- # PBXCall.SendEMail()

  Followers 0

  Lua → VBScript SwxWare v13.10

  This function sends an email via the globally configured email address.

      local nReturn = PBXCall.SendEMail(sTOAddress, sSubject, sBody, bAttachRecording)

  This function returns a PBXResult value of PBXSuccess or PBXFailure.

  The "from" field of the email with be populated with the globally configured email address. The globally configured mail server will be used to sent this email via SMTP.

  You can use the PBXScript.SendEMail() function if you need to specify more standard email fields like CC and BCC.

  Parameters

  sTOAddress

  EMail address. Must be a valid SMTP mail address, e.g. [email protected]

  sSubject

  EMail Subject.

  sBody

  EMail Body.

  bAttachRecording

  If true the last recorded message will be attached, i.e. the .wav file which was created by last PBXCall.RecordMessage() call or by the lat Record Message block before this PBXCall.SendEMail().

  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.