Files
kumomta/docs/reference/message/recipient.md
T
2025-12-02 11:11:05 +00:00

22 lines
602 B
Markdown

# recipient
```lua
message:recipient()
```
Returns the envelope recipient of the message. The return value is an
[EnvelopeAddress](../address/index.md)
See also [message:sender](sender.md).
## Recipient List
{{since('2025.12.02-67ee9e96')}}
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](../address/index.md) 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](recipient_list.md).