Deno Email Apis

Send and receive emails in Deno JS. Use APIs in Deno with MailSlurp.

Deno is Node sorted - literally!

'node'.split('').sort().join('')
// deno

But, more seriously, Deno is a new runtime for Javascript that promises to fix some of the biggest problems with NodeJS. It was in fact created by Ryan Dahl who invented NodeJs itself.

Sending emails in Deno

MailSlurp is a free email API for sending and reading emails from disposable temp mailboxes. To use MailSlurp with deno simply import the package from Github.

import { InboxControllerApi } from 'https://raw.githubusercontent.com/mailslurp/mailslurp-client-deno/11.7.9/index.ts'

Creating inboxes

The Deno email library uses the same API as the NodeJS npm package.

// create a client
const apiKey = process.env.API_KEY ?? 'your-api-key';
const mailslurp = new MailSlurp({ apiKey });

// create an inbox
const inbox = await mailslurp.inboxController.createInbox({});
expect(inbox.emailAddress).toContain('@mailslurp');

Related content

Javascript email libraries for MailSlurp

Nodemailer alternatives to send and receieve email in code and tests

Fastest way to start a typescript project

Modern typescript tooling has come a long way. See how to setup a new project with TS-Node, TSC, and typeconfig.json.

Fetch error message javascript

Handle response exceptions with Fetch in Javascript

GraphQL API disposable email accounts

How to create real email addresses using GraphQL to send and receive emails in tests and frontend applications.

GraphQL Email API Tutorial

Did you know you can send and receive emails using GraphQL?

Hugo responsive image srcsets

Serve responsive picture tags with custom render-image layout partial in Hugo static site generator.

Ready to dive in?Start building email applications today.