Class SendmailTransport
- Defined in: sendmail.js
Constructor Attributes | Constructor Name and Description |
---|---|
SendmailTransport(config)
Generates a Transport object for Sendmail |
Method Summary
Class Detail
SendmailTransport(config)
Generates a Transport object for Sendmail
- Parameters:
- {String} config Optional
- path to the sendmail command
Method Detail
-
sendMail(emailMessage, callback)
Spawns a
'sendmail -t'
command and streams the outgoing message to sendmail stdin. Return callback checks if the sendmail process ended with 0 (no error) or not.- Parameters:
- {Object} emailMessage
- MailComposer object
- {Function} callback
- Callback function to run when the sending is completed