/Email2Telegram

Simple script to scan Gmail for e-mail from specific sender and send the subject to yourself on Telegram.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Prerequisites:

  • Python installation (see Link)
  • Pip installation (should come with the latest Python version, otherwise, see Link)

Initial Setup:

  • Run pip install -r requirements.txt
  • Modify config_ex.ini with your mail data and recipient phone number and remove the _ex from the file name.
  • For Gmail, set up an app password (see https://support.google.com/accounts/answer/185833?hl=en for help)
  • Specify the sender address you want to listen to and the interval to check for new mails in seconds
  • Finally, run the script using python main.py