empty()

Empty the outbox.

Syntax

empty()

Empty the outbox.

Description

Drop all emails from the outbox.

This will only affect emails added in the current transaction, including all its sub-transactions.

Examples

It’s okay to call it with no emails in the outbox.

Drop the only email in the outbox.