Skip to content

Instantly share code, notes, and snippets.

View biplob004's full-sized avatar

Biplob biplob004

  • n/a
  • Assam, India
View GitHub Profile
@biplob004
biplob004 / reply_gmail.py
Created January 2, 2025 10:29
Gmail Autoreply using OPENAI ChatGPT Model
# ----------------------------------------------------------
# You need to have a file named ".env" and environment variables should be defined there before running this code,
# Alternatively you can edit this code and hadcode your api key and sender email id and password
# Important Note: you need to create app password for your gmail and use it here instead of gmail login password.
# ----------------------------------------------------------
import imaplib
import email