Code Monkey home page Code Monkey logo

automatic-email-sender's Introduction

Automatic-Email-Sender

Automatic Email Sender Using NodeJS

Download the mailSender to your PC

Installation

git clone https://github.com/IshanMK/Automatic-Email-Sender.git

Install all the modules required

  • Inside the directory where package.json is located run the following code from your terminal
npm install

Configuration for your Gmail Account

  • Go to your Google Account

  • Then Go to Security Tab

    EcZhsd9Hlb

  • Turn on 2-step verification

    mhlCdvSp1u

  • After turning on 2-step verification go back now you will see new option below 2-step Verification.

  • Go to the new Option App passwords

    EMRDrRzOMc

  • You will get the followings

    g0KEXurtTr

  • Click on select app and choose the option Other(Custom name)

    68Nseu72IZ

  • Provide the custom name for your application and click on Generate

    iPm0D0Txr7

  • It will automatically generate a password with 16 characters for your application

    ySjrEqW0lU

  • Copy the password to the clipboard

Setting Up the .env.auth file

  • If you have a smtp server use it other use smtp.gmail.com as the HOST.
  • The PORT regarding the smtp is 587.use 587 as HOST_PORT.
  • Use gmail as the SERVICE.
  • Use your own email address as EMAIL_USERNAME.
  • Use the password copied to the ciplboard as the PASSWORD

1DcgISgMHz

Setting Up sendEmail.js

  • Provide the recipients with an array of recipients mails seperated by commas as strings.If there is only single recipient no need an array of recipients.Just provide the single email as a string
  • Just Provide the scheduledDate with the Date-Time_TimeZone you want to send the email
  • eg : 2022-06-28T18:16:45+05:30
  • Provide sender , subject and content as you want

4Mwynv1nzD

Start Sending Mails

  • After doing all the above steps just run the following code from your terminal
node sendEmail

or

npm start

Find More About moment module

automatic-email-sender's People

Contributors

ishanmk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.