npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

freely-email

v1.0.7

Published

This Library is designed to make it easy for developers to send automated emails to multiple recipients.

Downloads

1

Readme

FreelyEmail (API)

FreelyEmail API Library is a RESTful web service that provides developers with an easy-to-use interface for sending emails from within their applications. It allows developers to send emails quickly and easily without having to set up their own SMTP server or domain.

To use the API, a developer needs to call method with required data for sending the email, such as the recipient's email address, subject, and message body. The API then takes care of the rest, including formatting and sending the email using the DoNot-Reply.online domain.

One of the main benefit of this FreelyEmail API is that it simplifies the process of sending emails for developers who may not have the time or resources to set up their own email infrastructure. It also provides an added layer of security, as it allows developers to send emails without disclosing their own domain or email server information.

Summary (😂): FreelyEmail is build on Node.js that makes it easy to send automated emails without writing any code. It doesnot require any email and Server configuration. Just call the API with the required data and boooom!!! Email Send

It also come with Android and Node Js library which reduces the effort of managing APIs and handling errors.

How to use:

Library

Simple Email With / Without Html file

A Simple Email with/without Html file Example

const freelyEmail =  require("freely-email")

const sampleEmail = {
   "recipient" : "Email Address to whom you want to send Email", //  use Array of String for multiple email
   "app" : "Your App Name", 
   "replyTo" : "Your contact Email " // User can directly reply to this email
   "subject" : "Subject of your email",
   "sender" : "YourAppEmail", //eg: Your-App-Name // donot include @donot-reply.online // no space or special char
   "message" : "Email Message",  //your Email containt
   "HTMLfile" : "HTML File if you have" //must be in String and single html formate  
 } 
 freelyEmail.sendEmail(sampleEmail)
 .then( data => { })
 .catch(err => {})
  • Base api structure :https://email.api.harshit107.in/request-type

    • How to send a simple email using FreelyEmail-Library
      • Step 1 : Import FreelyEmail-Library
      • Step 2 : Create a new email body with given parameters
      • step 3 : Call type of action
    • Supported Action
      • sendEmail

      • sendOTP,

      • sendOTPRequest,

      • sendLink

    Action : Simple Email :

    • API : https://email.api.harshit107.tech/public/email/notification
     * Request Type : POST
     * Body : { sender, recipient, replyTo, app, subject, message, HTMLfile }
 * Note : 
   * parameter must have same name as mentioned above
   * sender email should not contain any domain, we will add @donot-reply.online at the end.
   * Example : 
  ``` JavaScript
  const emailBody = {
     "recipient" : "Email Address to whom you want to send Email", //  use Array of String for multiple email
     "app" : "Your App Name", 
     "replyTo" : "Your contact Email " // User can directly reply to this email
     "subject" : "Subject of your email",
     "sender" : "YourAppEmail", //eg: Your-App-Name // donot include @donot-reply.online // no space or special char
     "message" : "Email Message",  //your Email containt
     "HTMLfile" : "HTML File if you have" //must be in String and single html formate  
   } 
   freelyEmail.sendEmail(emailBody)
   .then( data => { })
   .catch(err => {})

Action : Email Containing OTP :

  • API : https://email.api.harshit107.tech/public/email/verification/otp
 * Request Type : POST
 * Body : {  sender,recipient, replyTo,  app, subject, otp, withValidTime,HTMLfile}
  • Note :
    • parameter must have same name as mentioned above
    • sender email should not contain any domain, we will add @donot-reply.online at the end.
    • Example :
const msgBody = {
     "app" : App Name,
     "subject" : Subject,
     "recipient" : recipients Email,
     "replyTo" : ReplyTo
     "sender" : Sender Email,
     "otp" : otp,  // must 
     "withValidTime" : withValidTime, // Optional 
     "HTMLfile" : HTMLFile
 }

Response

Every Request will have object as response which will contain data and error.

Success

{
  data : "Message Id",
  error : {}
}

Status code : 200.

Error

{
  data : {},
  error : "Error Reason"
}

Status code : 400.

Action: Request Auto OTP Email :

  • API : https://email.api.harshit107.tech/public/email/verification/otp/request
  • This action automatically generates an OTP in server and sends it to the recipient, with the OTP being received in the response.
 * Request Type : POST
 * Body : {  sender, recipient, replyTo, app, subject, withValidTime}
  • Note :
    • parameter must have same name as mentioned above
    • sender email should not contain any domain, we will add @donot-reply.online at the end.
    • Example :
const msgBody = {
     "app" : App Name,
     "subject" : Subject,
     "recipient" : recipients Email,
     "replyTo" : ReplyTo
     "sender" : Sender Email,
     "withValidTime" : withValidTime, // Optional 
 }

Response

Every Request will have object as response which will contain data and error.

Success

{
  data : {msgId, OTP}, //OTP : It is a 6 digit passcode that user received in mail, so use this OTP to verify user in Client side.
  error : {}
}

Status code : 200.

Error

{
  data : {},
  error : "Error Reason"
}

Status code : 400.

Action :

  • API : Email Containing Link : https://email.api.harshit107.tech/public/email/verification/link
 * Request Type : POST
 * Body : {  sender,recipient, replyTo,  app, subject, link, withValidTime,HTMLfile}
  • Note :
    • parameter must have same name as mentioned above
    • sender email should not contain any domain, we will add @donot-reply.online at the end.
    • Example :
const msgBody = {
     "app" : App Name,
     "subject" : Subject,
     "recipient" : recipients Email,
     "replyTo" : ReplyTo
     "sender" : Sender Email,
     "link" : link,  // must 
     "withValidTime" : withValidTime, // Optional 
     "HTMLfile" : HTMLFile
 }

Response

Every Request will have object as response which will contain data and error.

Success

{
  data : "Message Id",
  error : {}
}

Status code : 200.

Error

{
  data : {},
  error : "Error Reason"
}

Status code : 400.

Installation : ( only for those who want to contribute )

Install my-project with npm

1 Clone the repository to your local machine using git clone
https://github.com/Harshit107/FreelyEmail-Api.git
2 Navigate to the project folder using cd Auto-Email-Sender
3 Install the dependencies using npm install

Environment Variables

To run this project, you will need to add the following environment variables to your .env file. || contact for .env : [email protected]

SendInBlue Email

SendInBlue Password

Demo

Send your First Email // under developement