Skip to content

recipient

message:recipient()

Returns the envelope recipient of the message. The return value is an EnvelopeAddress

See also message:sender.

Recipient List

Since: Dev Builds Only

The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.

If the message is part of an SMTP batch with more than a single recipient then this method can return an array style table holding one EnvelopeAddress for each recipient.

If you'd rather always deal with a list of recipients, even if there is just a single recipient, then you can use message:recipient_list.