Skip to content

Commit

Permalink
Issue-143
Browse files Browse the repository at this point in the history
  • Loading branch information
PradhumnPandey committed Aug 30, 2023
1 parent 7c25ce6 commit c1361c9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Automated_Mailing/mail.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from os import name
import pandas as pd
import smtplib
from email.mime.multipart import MIMEMultipart
Expand All @@ -12,20 +11,19 @@
name = data['name'].tolist()

l=len(name)
email="" #Enter Your email id here
password="" #Enter your Password

for i in range (l):
msg=MIMEMultipart()
msg['From']=from_addr
msg['To']=to_addr[i]
msg['subject']='Just to Check'
msg['Subject']='Just to Check'

body=name[i]+'Enter your content here'

msg.attach(MIMEText(body,'plain'))

email="" #Enter Your email id here
password="" #Enter your Password

mail=smtplib.SMTP('smtp.gmail.com',587)
mail.ehlo()
mail.starttls()
Expand Down

0 comments on commit c1361c9

Please sign in to comment.