mailslurp-client3.0.14 • Public • Published
Completely rewritten for MailSlurp v2.0.
MailSlurp is an API for sending and receiving emails from ephemeral addresses. It is designed for use in test suites that test applications that in some way interact with emails.
Below is a diagram of how your application, tests and MailSlurp interact.
Start by reading the the official MailSlurp documentation.
The best way to understand this library is the examples section.
npm install mailslurp-client
yarn add mailslurp-client
// import the package// const MailSlurp = require("mailslurp-client")// create an instance with your apiKeyconst api = apiKey: "test"
See documentation for more information.
Test email sending
Test email processing
// can your app handle inbound emailstest'my app can send emails',
The library uses the debug package to log actions. Set DEBUG=mailslurp-client to enable logging output.