Skip to content

Email Sender

The Email Sender component drops an email into the middle of a call flow, so the system can fire off notifications, alerts, or caller-specific details automatically as a call runs.

Place Email Sender wherever the flow should send a message. You decide which mail server delivers the email and fill in the usual fields: the sender name, the recipients (To, CC, and BCC), the subject, the body, and any attachments.

  • Cloud Voice SMTP Server: the built-in mail server, ready to use with no extra setup. SMTP (Simple Mail Transfer Protocol) is the standard protocol used to send email.
  • Custom Email Server: an SMTP server you supply.
  1. Add the Email Sender component to your call flow, then click it to open its settings.

    Email Sender component selected on the call flow canvas

  2. Open the Type of Email Server list and pick the server that will send the message.

    Cloud Voice, mail server type list open in the Email Sender settings

  3. Complete the email fields described below.

  4. Click Confirm in the bottom-right corner.

From

The sender name that recipients see in the email’s “From” line.

Subject

The email subject. Type fixed text, or select the expression button (expression editor) to build the value dynamically.

Email Recipient

The recipient address, shown in the email’s “To” line. Enter addresses directly, or select the expression button to build them from an expression.

Expression example:

FX_TO_STRING($DatabaseAccess1.queryResult)

In this case an upstream Database Access component runs SELECT email_addr FROM user WHERE number='$Session.ani'; to look up the email address tied to the caller’s number, and FX_TO_STRING converts that result into a string for the recipient field.

CC

The carbon-copy address, shown in the email’s “Cc” line. Enter addresses directly or build them with an expression.

BCC

The blind-carbon-copy address, shown in the email’s “Bcc” line. Enter addresses directly or build them with an expression.

Content

The body of the email. You can embed variables to pull in call or system information:

  • For call-related information, select the expression button, build the expression, and insert it into the body.

    Expression inserted into the email body to include call information

  • For system-related information, copy the template variable and paste it into the body.

    Template variables available for the email body

Attachments

Click Add to attach a file. For each one, enter an absolute path (or an expression that resolves to a path) that points to a file in the PBX’s local storage.

  • File path example: /ysdisk/syslog/pbxlog.log
  • Expression example: /ysdisk/email/'FX_CONCATENATE("cloudvoice","6602")'

Do not send email if the attachment file does not exist

Select this option to skip sending the email whenever any attachment file is missing.

Email Sender connects to exactly one downstream component. That component can be any of the following:

  • Prompt, Play an audio prompt or a text-to-speech message to the caller.
  • Business Hours, Route calls to different destinations based on the time of day.
  • Menu, Offer callers a set of options and route the call by the DTMF digit they press. DTMF (Dual-Tone Multi-Frequency) is the tone a phone sends when a key on the dial pad is pressed.
  • User Input, Collect DTMF digits from the caller, typically paired with Condition to route on what they enter.
  • Language, Switch the system-prompt language for the components that follow.
  • Record, Start recording once the caller connects to another party (with optional notice prompts), or suppress recording for calls that would otherwise be recorded.
  • Dial by Number, Let callers dial a number directly to reach their destination.
  • Dial by Name, An end component that lets callers reach a user by entering the first three letters of the user’s name.
  • Transfer, An end component that transfers the caller to a set destination, with optional notice prompts.
  • Hang Up Call, An end component that disconnects the call.
  • Condition, Route calls using logical expressions.
  • Loop, Run a group of components repeatedly, either a set number of times or until a condition is met.
  • Internal Data Ops: Query and update data in the PBX-native database. See:
  • Email Sender, Send another email for notifications, alerts, or user-specific information.
  • Database Access, Run SQL against a database to retrieve or update data during the flow.
  • HTTP Request, Send HTTP requests to external servers to exchange data with third-party services.