0.0.11 • Published 4 years ago

@ohmysmtp/ohmysmtp.js v0.0.11

Weekly downloads
158
License
MIT
Repository
github
Last release
4 years ago

OhMySMTP Node.js Library

<ORG_NAME> codecov npm version License: MIT

This is the official Node.js library for the https://ohmysmtp.com transactional email API

Quick Start

Pre-requisites

First you will need to retrieve your API token for your sending domain from OhMySMTP. You can find it under Organization -> Domain -> API Tokens

Your domain must have completed DKIM authorization and have an active plan to send emails.

Installation

If using NPM

npm install --save @ohmysmtp/ohmysmtp.js

If using Yarn

yarn add @ohmysmtp/ohmysmtp.js

Sending an email

const OhMySMTP = require('@ohmysmtp/ohmysmtp.js');
const client = new OhMySMTP.DomainClient('API_TOKEN_HERE');

client
  .sendEmail({
    from: 'test@test.com',
    to: 'test@test.com',
    subject: 'test',
    htmlbody: '<H1>HTML Email</h1>',
  })
  .then((r) => {
    console.log(r);
  });

Documentation

See https://docs.ohmysmtp.com/integrations/node for detailed documentation and all options

Issues, Support & Contributions

If you have any difficulties please contact support@ohmysmtp.com or open an issue on github.

Contributions are always welcome

License

MIT

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago