<reponame>ShivSoni5/Vision-
#!/usr/bin/python3

import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart


def mail_send(query):
    users = {'shiv':'<EMAIL>','pranjal':'<EMAIL>','subham':'<EMAIL>','anand':'<EMAIL>','Gaurav':'<EMAIL>'}
    email_user = 'your_email'
    email_password = '<PASSWORD>'
    email_send = users[query]

    subject = input("Subject: ")

    msg = MIMEMultipart()
    msg['From'] = email_user
    msg['To'] = email_send
    msg['Subject'] = subject

    body = input("Body: ")
    msg.attach(MIMEText(body,'plain'))

    text = msg.as_string()
    server = smtplib.SMTP('smtp.gmail.com',587)
    server.starttls()
    server.login(email_user,email_password)


    server.sendmail(email_user,email_send,text)
    server.quit()

if __name__=="__main__":
    mail_send('shiv')


#!/usr/bin/python3

import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart


def mail_send(query):
    users = {'shiv':'<EMAIL>','pranjal':'<EMAIL>','subham':'<EMAIL>','anand':'<EMAIL>','Gaurav':'<EMAIL>'}
    email_user = 'your_email'
    email_password = '<PASSWORD>'
    email_send = users[query]

    subject = input("Subject: ")

    msg = MIMEMultipart()
    msg['From'] = email_user
    msg['To'] = email_send
    msg['Subject'] = subject

    body = input("Body: ")
    msg.attach(MIMEText(body,'plain'))

    text = msg.as_string()
    server = smtplib.SMTP('smtp.gmail.com',587)
    server.starttls()
    server.login(email_user,email_password)


    server.sendmail(email_user,email_send,text)
    server.quit()

if __name__=="__main__":
    mail_send('shiv')
#!/usr/bin/python3