Git Product home page Git Product logo

python-email's Introduction

Python-Email

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

What things you need to install and how to install them

Python version 3.0 or higher
smtp package 

To install simple mail transfer protocol (SMTP), type the following in your windows command prompt

pip install smtp

It should look like this

image

You now have the required software to run the script. Download the repository to your local machine and change lines 22 and 24. These lines are the sender and receiver emails, respectively.

Before You can Send

The account used to send the email(s) must change the following security setting.

Click your profile icon (top right of the google page) -> Manage your Google Account -> Security -> Less secure app access

Set this to "On" , if this is not on a secure connection cannot be made (due to built in security features of google). It should look like this

image

Now we are ready to execute in the command line. Make your way to the directory where the repository is downloaded and type the following command

python spammer.py

You will then be prompted to type your password for the email account you declared on line 22 and the number of times you wish to send the email (max is 10,000 per day on gmail). Here is what a successful execution looks like

image

If you would like to change the subject (aka header) of the email you can do so in line 25 of the script. You can also change the body of the email in the 'message.txt' file .

Disclaimer

I am not responsible for anything you do with this script, it is designed solely for learning purposes

References

https://docs.python.org/3/library/email.examples.html

https://docs.python.org/3/library/smtplib.html

https://realpython.com/python-send-email/

https://www.w3schools.com/python/python_file_open.asp

python-email's People

Contributors

deliarm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

python-email's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.