Skip to content

Tanmay-coderr/Command_line_email_sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Command-Line Email Sender

This is a Python script that allows you to send emails using Gmail's SMTP server. You can customize the subject, body, and recipient email address. The script also supports attachments, though it's currently set up to send emails without attachments.

Prerequisites

  • Python 3.x
  • Required libraries: smtplib, email
  • A Gmail account with 2-Step Verification enabled.

How to Generate an App Password for Gmail

To send emails using your Gmail account from this script, you need to create an app-specific password. Follow these steps:

1.Open the link : https://myaccount.google.com/apppasswords
2.Sign in to your google account.
3.Enter a name for your app password.
4.Copy the generated password and save it for later use.

How to run the Email sender

To run the email sender, follow these steps:

1.Open the script.py file .
2.Run the code.
3.Enter the credentials.
4.Enter the subject, body and the path to the attachements you want to send.
5.The email will be sent.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages