Skip to content

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

Notifications You must be signed in to change notification settings

CoolProgrammerAK/Automatic-gmail-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 avineykhetarpal01@gmail.com

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published