Hierarchy

  • EmailMessage
    • EnhancedMessage

Properties

from: string

Envelope From attribute of the email message.

headers: Headers

The email message headers.

raw: (() => Promise<Uint8Array>)

Type declaration

    • (): Promise<Uint8Array>
    • The email message content.

      Returns Promise<Uint8Array>

size: number

Size of the email message content.

to: string

Envelope To attribute of the email message.

Methods

  • Forward this email message to a verified destination address of the account.

    Parameters

    • to: string

      Verified destination address.

    • Optional headers: Headers

    Returns Promise<void>

    A promise that resolves when the email message is forwarded.

  • Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason.

    Parameters

    • reason: string

      The reject reason.

    Returns void

Generated using TypeDoc