Skip to content

Outlook Send Email

Type: outlook-send  ·  Package: Outlook Activities v1.0.0

Send an email via Outlook. Supports multiple recipients, copy (CC) and blind copy (BCC/BCC), body in plain text or HTML, and attachments. Useful for notifications, reports, confirmations.

Compose and send the email using the session account (or the default account if there is no session). Recipients in to, cc, and bcc are separated with semicolons (;). If you give htmlBody, that is used instead of the plain text body. The attachments are local file paths.

ParameterEditorDescription
toexpressionDestinatario(s), separados por ;.
subjectexpressionEmail subject.
ParameterEditorDescription
sessionsessionOutlook Connect session. If omitted, use the default account.
ccexpressionDestinatarios en copia, separados por ;.
bccexpressionDestinatarios en copia oculta, separados por ;.
bodyexpressionCuerpo en texto plano.
htmlBodyexpressionCuerpo en HTML (tiene prioridad sobre body).
attachmentsexpressionList of file paths to attach.

Simple email:

Outlook Send Email
to = "cliente@empresa.com"
subject = = "Factura " + numeroFactura
body = = "Adjuntamos su factura. Gracias."
attachments = = arr("C:/facturas/" + numeroFactura + ".pdf")

HTML email with copy:

Outlook Send Email
to = = join(destinatarios, ";")
cc = "supervisor@empresa.com"
subject = "Reporte diario"
htmlBody = = "<h1>Reporte</h1><p>Procesados: " + total + "</p>"