In: Computer Science
Which of these tasks do you think is most feasible for automation? Pick one
Issuing handwritten memos for clients
Reading scanned copies of documents
Recruiting new employees
Sending daily status report emails
I think "Sending daily status report emails" is most feasible for automation
Below is the simple python code for sending email
import smtplib, ssl port = 587 # For starttls smtp_server = "smtp.g mail.com" sender_email = "my at g mail.com" #sender mail receiver_email = "your at g mail.com" #Receiver mail password = input("Type your password and press enter:") #Enter password for sender mail message = """\ #Type Your message here Subject: Hi there This message is genrated by python """ context = ssl.create_default_context() with smtplib.SMTP(smtp_server, port) as server: server.ehlo() # It Can be omitted server.starttls(context=context) server.ehlo() #It Can be omitted server.login(sender_email, password) #used to login to mail server.sendmail(sender_email, receiver_email, message) #used to send message