3.1.0 • Published 6 years ago
@datafire/smtp v3.1.0
@datafire/smtp
Client library for SMTP
Installation and Usage
npm install --save @datafire/smtplet smtp = require('@datafire/smtp').create({
host: "",
port: "",
username: "",
password: ""
});
smtp.send({
"from": "",
"to": []
}).then(data => {
console.log(data);
});Description
Send e-mail using the SMTP protocol
Actions
send
smtp.send({
"from": "",
"to": []
}, context)Input
- input
object- from required
string: Email address of the sender - to required
array: Email addresses of the recipients- items
string
- items
- cc
array: Email addresses of CC recipients- items
string
- items
- bcc
array: Email addresses of BCC recipients- items
string
- items
- subject
string: The subject of the email - text
string: Plaintext content of the email message - html
string: HTML content of the email message - attachments
array- items
object- filename
string - cid
string: optional content ID - content
string: File contents - encoding
string(values: ascii, utf8, utf16le, base64, binary, hex) - contentType
string - contentDisposition
string
- filename
- items
- envelope
object- from
string: From header for the email - to
array: To header for the email- items
string
- items
- size
integer: (optional) predicted message size in bytes - use8BitMime
boolean: If true then inform the server that this message might contain bytes outside 7bit ascii range - dsn
object- ret
string(values: FULL, HDRS): return either the full message (FULL) or only headers (HDRS) - envid
string: Sender's envelope identifier, for tracking - notify
string: When to send a DSN. Multiple options are OK - array or comma delimited. NEVER must appear by itself. Available options: NEVER, SUCCESS, FAILURE, DELAY - orcpt
string: Original recipient
- ret
- from
- from required
Output
- output
object- accepted
array- items
string
- items
- rejected
array- items
string
- items
- envelopeTime
integer - messageTime
integer - messageSize
integer - response
string
- accepted
Definitions
This integration has no definitions