MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / sendEmail

Function sendEmail

projects/JARVIS.PY/JARVIS2.0.py:56–63  ·  view source on GitHub ↗
(to, content)

Source from the content-addressed store, hash-verified

54
55
56def 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
66if __name__ == "__main__":

Callers 1

JARVIS2.0.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected