I'm making a Python program that notifies the user via email when a particular event happens. I managed to do so by making a Gmail account and using the smtplib and email packages in Python. However, in order to use these I have to provide my login credentials in the Python program. The problem is, any user can see these credentials and tamper with the email I'm using to notify other users.
How do I send emails without exposing my login credentials in Python?