Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

10 Python Mini Automation Projects

Haider Imtiaz
Python in Plain English
7 min readAug 28, 2022

--

Designed by wayhomestudio on Freepik

The age of automation is going to be the age of “do it yourself”.

— Marshall Mcluhen

👉Email Sender

# Send Email with Python 
# pip install yagmail
from yagmail import SMTPdef Email_Sender(subject, body):
mail = SMTP(user='username', password='password')
mail.send("reciever@mail.com", subject = subject, contents = body)
mail.close()
print("Email Sent")
def Email_With_Attachment(subject, attachment):
mail = SMTP(user='username', password='password')
mail.send("reciever@mail.com", subject = subject, attachments = attachment)…

--

--

Published in Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Written by Haider Imtiaz

Top Writer, Programmer, UI Designer, Thinker, and Fitness and Health expert ✌️ Become Medium Family Today😎 — https://codedev101.medium.com/membership

Responses (3)

Write a response