Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.89 KB

README.md

File metadata and controls

73 lines (49 loc) · 1.89 KB

MailerSend Node.js SDK

MIT licensed

Table of Contents

Installation

Setup

npm install mailersend

Usage

Sending a basic email.

const Recipient = require("mailersend").Recipient;
const EmailParams = require("mailersend").EmailParams;
const MailerSend = require("mailersend");

const mailersend = new MailerSend({
  api_key: "key",
});

const recipients = [new Recipient("your@client.com", "Your Client")];

const emailParams = new EmailParams()
  .setFrom("your@domain.com")
  .setFromName("Your Name")
  .setRecipients(recipients)
  .setSubject("Subject")
  .setHtml("This is the HTML content")
  .setText("This is the text content");

mailersend.send(emailParams);

Available endpoints

Feature group Endpoint Available
Email POST send

If, at the moment, some endpoint is not available, please use cURL and other available tools to access it. Refer to official API docs for more info.

Support and Feedback

In case you find any bugs, submit an issue directly here in GitHub.

You are welcome to create SDK for any other programming language.

If you have any troubles using our API or SDK free to contact our support by email info@mailersend.com

The official documentation is at https://developers.mailersend.com

License

The MIT License (MIT)