OptionalattachmentsFile attachments. When present the message is built as multipart/mixed with the
text/html body as the first part and each file base64-encoded after it.
OptionalbccBlind carbon-copy recipients (added to envelope only, never to headers).
OptionalccCarbon-copy recipients (added to headers and envelope).
Envelope and header From address.
OptionalheadersExtra headers appended verbatim (keep values ASCII).
OptionalhtmlHTML body.
OptionalrawA complete, pre-rendered RFC 5322 message; bypasses the MIME builder when set.
Subject line.
OptionaltextPlain-text body.
Primary recipient(s).
A message to send.
Provide
text,html, both (multipart/alternative), or a fully pre-renderedrawpayload. Recipient lists fromto,cc, andbccare all added to the SMTP envelope;bccis intentionally never written into the message headers.Since
1.0.0