simplesend

1.0.11 • Public • Published

simplesend v1.0.11

use our web site to send email simple!!

Installation

Using npm:

$ npm i simplesend
$ npm install simplesend

In Node.js(ESM):

import { sendEmailWithAttachment, sendOnlyEmail } from "simplesend";
const body = {
  user_id: 0, //your user ID //required
  nameFrom: "example.com", // your verify name //required
  emailTo: "email@example.com", //required
  emailBcc: "email@example.com",
  emailCc: "email@example.com",
  emailReplyTo: "email@example.com",
  emailSubject: `example`, //required
  emailBodyType: "html", //required //'html' or 'text'
  emailBodyContent: `
    <a href="https://google.com">google</a>`, //required
  trackingOpen: "yes", //required  //'yes' or 'no'
  trackingClick: "yes", //required  //'yes' or 'no'
  trackingLink: "https://google.com", //if you want to track your click ,you have to provide the link you want to track in your html content
};
const apiKey = "your api key it will provide from our web service";
const filePath = "your/file/path";
//send email with attachment
sendEmailWithAttachment(body, filePath, apiKey);

// without attachment
sendOnlyEmail(body, apiKey);

Note:
user our web site to send email simple!!

Package Sidebar

Install

npm i simplesend

Weekly Downloads

0

Version

1.0.11

License

MIT

Unpacked Size

5.15 kB

Total Files

3

Last publish

Collaborators

  • timilao