Git Product home page Git Product logo

mail's Introduction

Project Title

Python Mailing Script

Introduction

This is a script written to send e-mail to multiple contacts stored in a file. It is supposed to send the e-mail to each of the contacts with a "Dear [Name]" at the top of the message followed by the message body.

The contacts are stored in myContacts.txt file and the message in message.txt file.

Prerequisites

To make the project functioning make sure that Python 3 is installed in the system. To download Python use the following link : https://www.python.org/downloads/

I will suggest to use Git Bash to run the python program. Any other command line will also be fine.

Steps

To set the data in myContacts.txt follow the steps below:

1. Open myContacts.txt file 
2. There will be two columns present in a single row.
3. The first column is for the name oi the person to whom the mail is being sent.
4. The second column is for the email id of the person to whom the mail is being sent.

To set the login information to your own account through which the emails will be sent, follow the steps below:

1. At line 8 initialize the variable 'youraddress' with your gmail account for sending the mails.
2. At line 9 initialize the variable 'yourpassword' with the password of your account.  

Running the program

To run the program go to the folder 'Mail' and type the command : py ./mail.py

If the setup of python has been right then the program will run.

Account Login Issue

It might happen that the script may not run because of account login process being blocked by Gmail. For this, follow the steps below :

1. Login to your account.
2. Go to https://myaccount.google.com/intro/security
3. On the left side select apps with account access.
4. Scroll down and turn on the 'Allow less secure apps' option.
5. Done!

Authors

License

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

mail's People

Contributors

suyash2810 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.