Skip to main content

Send Email (B2WS Client) (Beta)

The Send Email (B2WS Client) node composes and dispatches email messages using the local Microsoft Outlook client installed on a B2Win Suite Client workstation.

:::info Beta Feature Sending email through Outlook via the B2Win Suite Client is currently in Beta / Experimental (EXP) release. :::

Overview​

Unlike server-side email delivery (which requires central SMTP server configurations or Microsoft Graph tenant administrator approvals), the Send Email (B2WS Client) node routes email through the user's active desktop Outlook profile. This enables workflows to send emails from the user's personal mailbox, applying local Outlook rules, corporate Exchange policies, and personal email signatures.

Purpose​

  • Send emails originating from the user's actual Outlook account instead of an impersonal generic server address.
  • Deliver workflow documents as Outlook attachments.
  • Allow users to inspect and preview the generated email draft in Outlook before sending, or dispatch silently based on profile configuration.

Configuration​

FieldDescription
B2Win Client*The B2Win Client service configuration determining the target workstation.
To*Primary recipients. Multiple email addresses can be entered.
Cc / BccOptional carbon copy and blind carbon copy recipients (revealed via the Cc and Bcc action links).
SubjectEmail subject line. Supports expressions and workflow properties via the fx button.
PriorityMessage priority: Low, Normal, or High (default: Normal).
Request ReceiptWhen checked, requests a read receipt from the recipient in Outlook.
AttachmentsUpstream files attached to the outgoing email message. Click + to add or select specific upstream file outputs.
MessageRich-text HTML message editor. Supports full formatting (Bold, Italic, Underline, Fonts, Colors, Paragraphs, Lists, Links, Images, and HTML source mode). Type $ to insert workflow properties dynamically into the body.

User Email Settings Integration​

The node respects settings configured in the user's B2Win Suite profile under User Settings → Email:

  • Mail Client Open: Controls whether Outlook displays the email message draft on screen for the user (Opened), or transmits it automatically in the background (Closed).
  • Mail Client Footer: Dictates whether Outlook's configured signature is automatically appended to the message.

Inputs​

InputData TypeInput TypeDescription
InputFileAnyMultipleUpstream file outputs or data objects to include as email attachments.

Outputs​

OutputData TypeCollectionDescription
OutputDataObjectFalseJSON object detailing the client ID, recipient list, subject, and attachment count.

Properties​

PropertyFlowDataTypeDescription
B2WS_CLIENT_SENDEMAIL_TOStringList of evaluated recipient addresses.
B2WS_CLIENT_SENDEMAIL_SUBJECTStringEvaluated subject line of the email.
B2WS_CLIENT_SENDEMAIL_CLIENT_IDIntegerSystem ID of the client workstation.
B2WS_CLIENT_SENDEMAIL_CLIENT_HOSTNAMEStringTarget client computer hostname.
B2WS_CLIENT_SENDEMAIL_CLIENT_DISPLAYStringTarget client display name.
B2WS_CLIENT_SENDEMAIL_COMMANDStringDesktop command executed (SEND_MAIL).
CLIENT_ACTION_ACTIVITY_IDStringNotification activity ID created for the action.
CLIENT_ACTION_STATUSStringExecution outcome (SUCCESS, FAILED, or SKIPPED).
CLIENT_ACTION_RESULT_MESSAGEStringDiagnostic response from the B2Win Suite Client.
CLIENT_ACTION_COMPLETED_ATInstantTimestamp when the email was processed.

Processing & Approval Lifecycle​

  1. Message Construction: Evaluates the recipients, subject expressions, HTML body, and file attachments in the current workflow context.
  2. Profile Settings: Merges user preferences regarding whether Outlook should open the draft window or send silently.
  3. Queue Notification: Prepares a ClientRequest with command SEND_MAIL and creates an approval activity (queueApproval).
  4. Desktop Interaction:
    • The user receives an access notification in their B2Win Suite Client tray/popup with the message summary and recipient list.
    • Approve: Dispatches the command to local Outlook. If configured to open, Outlook displays the draft; otherwise, it sends silently via MAPI/Outlook automation.
    • Skip: Cancels the email dispatch, marking the node as ignored/skipped.
    • Auto-Approve: In auto-approve mode, the client immediately executes the Outlook action without manual prompts.
  5. Resume Workflow: Returns SUCCESS or error diagnostics and resumes the workflow execution DAG.

On the User's Computer​

This node needs the B2Win Suite Client to be installed and signed in on the target computer. What the person at that computer sees and controls is described in the client documentation:

  • Approving Actions: Require Approval and Auto Approve modes, and the Approve / Skip buttons.
  • File Access: the folders the client is allowed to use. Attachments taken from the user's own computer must be on the File Access list, or the user is asked to allow them.
  • Activity: progress, history and stopping a running action.
  • Troubleshooting: what Outlook error messages mean.