Coder Social home page Coder Social logo

coolprogrammerak / automatic-gmail-sender Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.95 MB

Automatically send email with attachments via gmail api through nodemailer with an google login system.

Shell 2.07% JavaScript 42.55% CSS 12.22% EJS 43.16%
nodejs nodemailer gmail-api ejs google-auth-library

automatic-gmail-sender's Introduction

Automatic-gmail-sender

We can automatically send email with attachments via gmail api through nodemailer with an google login system.

About the project

Built an automatic email sender using gmail api with node.js(ejs) and nodemailer.

NOTE

All the emails send will be from [email protected]

How To Run

Download Node.js from the official site(like I did) or from here , and run the following at the terminal:

node index.js

GMAIL API

To learn how to setup gmail api in node.js, check out the gmail_signin.

API configuration

  • copy/paste your configuration from your google cloud credentials into this file
    • .env file

Project Structure

  • index.js : Main project file, it has it initialize all the necessary files.
  • router/router.js: It has it's logic to create endpoints for sending an email.
  • router/login.js: It has it's logic to create endpoints for login.
  • /views: It has different views for /login or /gmail/api route which is built using ejs.
  • middleware.js : To check whether the user is loggin or not.
  • static/home.css : Css files
  • .env: All the necessary credentials
  • Procfile: For heroku setup

automatic-gmail-sender's People

Contributors

coolprogrammerak 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.