This is python code to send mails to recipients mail id stored in csv format file
Libraries used:
- getpass module to hide the password inputted by the user
- csv module to access csv format file
- smtplib and ssl module to make a secure connection to mail server
- MIMEText to build text i.e. body of mail
- MIMEMultipart to to build layout of mail i.e. subject,to etc.
This code builds a secure ssl connection to mail server SMTP_SSL() is used to build secure connection to port 465