(to, content)
| 54 | |
| 55 | |
| 56 | def sendEmail(to, content): |
| 57 | # Function to send an email using the provided email credentials |
| 58 | server = smtplib.SMTP("smtp.gmail.com", 587) |
| 59 | server.ehlo() |
| 60 | server.starttls() |
| 61 | server.login("youremail@gmail.com", "your-password") |
| 62 | server.sendmail("youremail@gmail.com", to, content) |
| 63 | server.close() |
| 64 | |
| 65 | |
| 66 | if __name__ == "__main__": |