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:

  • 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.

Subscribe to our newsletter!