emails()

Get a copy of all the emails in the outbox.

Syntax

emails() (emails []Object)

Get a copy of all the emails in the outbox.

Parameters

emails []Object

List of emails.

Object keys:

  • to string. Comma separated list of recipients.
  • cc string. Comma separated list of CC recipients.
  • bcc string. Comma separated list of BCC recipients.
  • subject string. Email subject.
  • textBody string?. Optional. Text alternative of the email body.
  • htmlBody string?. Optional. Html alternative of the email body.

Description

Get a copy of all the emails in the outbox.

Examples

No emails in the outbox.

One email in the outbox.

Two emails in the outbox.