Skip to main content

Type Alias: MailParty

type MailParty: string | object;

Represents an email party (sender or recipient). Accepts either a bare email string or a structured { name, address } object (name optional) for readable headers such as "Robo.js <[email protected]>".

Examples

{ name: 'Robo.js', address: '[email protected]' }
{ address: '[email protected]' }