Git Product home page Git Product logo

mailslurp-client's Introduction

MailSlurp is an Email API for developers and QA testers. It let's users create emails addresses on demand, then send and receive emails and attachments in applications and tests. MailSlurp is free for personal use.

Features ✉️ → 📭 → 📨

  • Create dynamic email accounts
  • Receive emails with waitFor(condition) long-polling
  • Receive emails using Push WebHooks
  • Send templated, transactional emails

About

This project contains the official and recommend MailSlurp SDK Client for Node, Javascript, and Typescript. All MailSlurp requests require API Authentication. Obtain a free API Key for personal use.

Getting Started

Resources
📦 NPM Module
📖 Documentation
✍️ Examples
🎓 Developer Portal
🔑 Get API Key
⚠️ Report an issue

Examples

npm install --save mailslurp-client
// instantiate client
const MailSlurp = require('mailslurp-client').default;
const mailslurp = new MailSlurp({ apiKey: 'XXXXX' });

// create a new email address
const { emailAddress, id } = await mailslurp.createInbox();

// receive email using created inbox
const { subject, body } = await mailslurp.waitForLatestEmail(id);

// send email from inbox
await mailslurp.sendEmail(id, { to: ['[email protected]'] })

// SEE DOCUMENTATION FOR ALL METHODS

Documentation

This repository contains documentation for all methods. The client closely resembles the REST API. The REST API has detailed documentation at docs.mailslurp.com.

Other Clients

You can find more MailSlurp SDKs on our website. If you wish to call the REST API directly please see the HTTP Documentation.

Change Log

See CHANGELOG.md.

Issues

Please email support and include a sample of the code you are using. Alternatively you can start a chat with our developers (note: responses may be asynchronous).

License

MIT

mailslurp-client's People

Contributors

cameroncf avatar dependabot[bot] avatar jackmahoney avatar klamping avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.