An SMTP transaction is valid from MAIL FROM time until RSET or "final-dot".
The value of the MAIL FROM command as an
An Array of
Address objects of recipients from the RCPT TO command.
An Array of the lines of the email after DATA.
The number of bytes in the email after DATA.
Adds a line of data to the email. Note this is RAW email - it isn't useful for adding banners to the email.
A safe place to store transaction specific values.
- transaction.add_header(key, value)
Adds a header to the email.
Deletes a header from the email.
The header of the email. See
Set to 1 to enable parsing of the mail body. Make sure you set this in hook_data or before.
The body of the email if you set
parse_body above. See
- transaction.attachment_hooks(start, data, end)
Sets event emitter hooks for attachments if you set
start event will receive
(content_type, filename) as parameters.
data event will receive a
Buffer object containing some of the
end event will be called with no parameters when an attachment ends.
end params are optional.