title: How to use encrypted password in python email
body: <p>I want to have Python send a mail automatically after certain events occur. In my script I have to enter a password. Is there any way to encrypt my password and use it in this script?</p>
  
  <p>Please give an example as I am not an expert in python. I have seen few answers on this topic but those aren't discussed completely, just some hints are given.</p>