import smtplib
# class send_mail:
#     def __init__(self,mail,password):
#         self.mail = mail
#         self.pw = password
#
#     def login_mail(self):
#         try:
#             self.mail_obj = smtplib.SMTP('smtp.gmail.com',587)
#             self.mail_obj.starttls()
#             self.mail_obj.login(self.mail,self.pw)
#             print("loging")
#
#         except:
#             return False
#
#     def send_mail(self,To,msg):
#         try:
#             self.to = To
#             self.msg = msg
#             self.mail_obj.sendmail(self.mail,self.to,self.msg)
#             print("send")
#             return True
#         except:
#             return False
#
#

#
# obj = send_mail("dayaayb@gmail.com","daya7090")
# obj.login_mail()
