Giter VIP home page Giter VIP logo

gmail-imap-listener's Introduction

Gmail Imap Listener

This code block allows you to read emails and download their attachments via your Gmail account using Node.js.

The code connects to the Gmail server using the IMAP protocol and tracks new emails.

The body and attachments of the emails are parsed using the mailparser module and the files are downloaded.

You can use this code to track incoming emails and download their attachments from your Gmail account.

Requirements

Node.js

Environments

Open the .env.example file and fill in the email and password fields

Note: You need an app password for the application, your normal user password will not work, if you do not know how to generate your app password, helpful link click me.

  EMAIL=
  PASSWORD=
  HOST=imap.gmail.com
  PORT=993

Rename the file .env.example with .env

Run it on your computer

Clone the project

  git clone https://github.com/Hasqer/gmail-imap-listener.git

Go to the project directory

  cd gmail-imap-listener

Install required packages

  npm install

Run the server

  node server

Emails received after this time will be written to the console and attachments will be saved in the downloads folder.

gmail-imap-listener's People

Contributors

ozanayrikan avatar sanketkheni01 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.