Automate your email responses during your vacation with this Node.js Express app using Gmail APIs. The app periodically checks emails and sends an auto-reply, creating a label for identified vacation-related emails.
- Gmail API Integration: Utilizes Gmail APIs for reading and sending emails.
- Automatic Reply: Sends automated vacation replies to incoming emails.
- Label Creation: Automatically creates a label for vacation-related emails.
- Periodic Check: Checks emails every 60-120 seconds for timely responses.
- Node.js Installation:
- Make sure you have Node.js installed. If not, download it from https://nodejs.org/.
- Gmail API Configuration:
- Create a new project on the Google Cloud Console.
- Enable the Gmail API and download the credentials.json file.
- Place the credentials.json in the root directory of your project.
- Project Setup:
- Clone this repository:
git clone <repository-url>
. - Navigate to the project directory:
cd <project-directory>
- Clone this repository:
- Dependency Installation:
- Run npm install to install the project dependencies.
- Configuration: *Configure your Gmail API credentials and other settings in the config.js file.
- Run the App:
- Execute npm start to launch the app.
- Gmail API Credentials:
- Replace the credentials.json file with your own Gmail API credentials.
- App Configuration:
- Adjust settings such as the auto-reply message and check interval in config.js.
- Start the App:
- Run the app using npm start.
- Access the App:
- Visit http://localhost:3000 to access the app.
- Authorize Access:
- Follow the on-screen instructions to authorize access to your Gmail account.
- Enjoy Your Vacation:
- The app will automatically reply to incoming emails and create a label for vacation-related emails.
- Fork the repository.
- Create a new branch:
git checkout -b feature/my-feature
. - Commit your changes:
git commit -am 'Add new feature'
. - Push to the branch:
git push origin feature/my-feature
. - Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Node.js: https://nodejs.org/
- Gmail API: https://developers.google.com/gmail