zohaibbashir / gmail-mail-automation

A Python script that is used to automate sending emails

Home Page:https://mail.google.com/mail/u/0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gmail Mail Automation

This Python script streamlines the process of sending emails through Gmail, offering two convenient methods. It supports the inclusion of Carbon Copy (CC) and Blind Carbon Copy (BCC) recipients.

Pre-requisites

  • Python 3.9 or lower
  • Gmail Account
  • If you meet the above requirements, install the necessary dependencies using:
pip install -r requirements.txt

Method - 1 Command Line Options

  • -e: Sender's email address.
  • -p: Password for the sender's email address. If not provided, the script will prompt for it securely.
  • -to: Recipient's email address.
  • -cc: CC email address.
  • -bcc: BCC email address.
  • -S: Email subject.
  • -T: Email text or body.

Example Usage

python main.py -e "sender@example.com" -p "password123" -to "recipient@example.com" -S "Subject" -T "Hello, this is the email body."

Method 2: Interactive Prompt

If you prefer a more interactive approach, run the script without command line options. The program will prompt you to provide the necessary details.

Feel free to automate your Gmail emails effortlessly!

About

A Python script that is used to automate sending emails

https://mail.google.com/mail/u/0/

License:MIT License


Languages

Language:Python 100.0%