Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates readme with improvements to intro and adds requirements #15

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 34 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
# Linux-Email-Automation

This script allows you to send multiple emails directly from the command line without you needing to open a browser.

# Linux-Email-Automation
You can send an unlimited number of emails to any number of people without any warning messages. The sent mail also goes directly into recipients' inboxes and not into spam.

## Prerequisites

This script sends emails to a any number of person without any warning messages and limit. The mail send goes in inbox and not in spam.
Before you begin, you ensure you have met the following requirements:

Usage:
* You have installed the latest version of [Python3](https://www.python.org/downloads/).
* You have a valid email address to use as the sender's email.
* SMTP via SSL uses port 465 so ensure this is open.

## Configuring the script

The `test.py` script contains the following default settings:

```python
port = 465
smtp_server = "smtp.gmail.com"
sender_email = ""
receiver_email = ""
password = ""
date = time.ctime()
message = MIMEMultipart()
text = MIMEText("""\
Subject: #Subject here.
Current Time/Date: {date}
#Message here.
""")
message.attach(text)
img_data = open('', 'rb').read()
image = MIMEImage(img_data, name=os.path.basename())
message.attach(image)
```

## Using the script

To run the script, open a terminal and run:

```
$ python3 test.py
Expand Down Expand Up @@ -45,5 +76,3 @@ $ git clone https://github.com/USERNAME/Linux-Email-Automation
```

5. Go to the directory where you've cloned the repo and starting making your contribution.