Email sender
Table Of Content
About
This package contains a simple email template that you may use with any framework or library.
All you have to do is install the email-template package, and you instantly have access to all email templates, saving you from having to complete all the work and install all dependencies the old-fashioned way.
Installation
npm install emailsender-js
yarn add emailsender-js
Usage
First of all, you need to import the email sender function from the package.
const { sendMail } = require("emailsender-js");
Then, you can use the email sender function to email the email template you want.
const email = sendMail(email, subject, fullName, authEmail, authPassword);
This function takes 4 parameters:
- email: the email of the user you want to send the email to.
- subject: the subject of the email.
- fullName: the full name of the user you want to send the email to.
- authEmail: this email you will use it for two things:
- you will use it as sender address.
- you will use it to login to your smtp server.
- authPassword: the password of smtp server.
And all you have to do is call the function and pass the parameters you want.
Author
License
The MIT License
Copyright (c) 2022 Abdelhaq Laachari