Skip to content

Python script designed to swiftly send emails with attachments

License

Notifications You must be signed in to change notification settings

anthonyborriello/Fast-Python-Mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 

Repository files navigation

Fast Python Mail (fpmail)

Fast Python Mail (fpmail) is a simple Python script designed to swiftly send emails with attachments. It offers a hassle-free solution for sending emails and is well-suited for non-commercial projects, making it ideal for personal or small-scale use.

Features

  • Effortlessly sends emails with attachments.
  • Simple and intuitive to use.
  • Customizable to suit your specific requirements.
  • Able to handle various providers.
  • Automatically configures itself on first run, prompting the user to input necessary information, and creates a JSON file (config.json) to store all configurations.
  • Allows selection of multiple files for sending attachments and enables navigation through the system's folders, starting from the home directory.

Usage

  1. Download the Python file:
    wget https://raw.githubusercontent.com/anthonyborriello/Fast-Python-Mail/main/fpmail.py
  2. Run the script:
    python fpmail.py

Nickname selection:

You have the option to skip selecting a nickname.
If left blank, the recipient will see your email address instead of a nickname in the email header.

To select multiple files for attachments:

When prompted, enter "yes" or "y" to attach files. You will be prompted to navigate through the system's folders starting from the home directory. Use the numbers provided to select folders or files. To select multiple files, you can enter numbers separated by spaces (e.g., "1 3 5"). To select a range of files, you can use hyphens (e.g., "1-3" selects files 1, 2, and 3). Once you've selected all desired files, press Enter to proceed.

Common SMTP Servers:

  • Gmail: smtp.gmail.com Port: 465 (SSL)
    Requires an App Password for authentication.
  • Hotmail/Outlook: smtp.office365.com Port: 587 (STARTTLS)
  • Yahoo: smtp.mail.yahoo.com Port: 465 (SSL)
    Requires an App Password for authentication.
  • AOL: smtp.aol.com Port: 587 (STARTTLS)
    Requires an App Password for authentication.
  • iCloud: smtp.mail.me.com Port: 587 (STARTTLS)
    Requires an App Password for authentication.

Author

🇮🇹 Antonio Borriello - Website

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Python script designed to swiftly send emails with attachments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages