title: What is a secure way to send an email using Python and Gmail as the provider?
body: <p>I am trying to send emails to myself using a Python script, and luckily I came across this post:</p>
  
  <p><a href="https://stackoverflow.com/questions/10147455/trying-to-send-email-gmail-as-mail-provider-using-python">How to send an email with Gmail as provider using Python?</a></p>
  
  <p>The trouble is, smtplib sends out the password for the script in plain text and I am skeptical about its security. Further my script contains my username and password in plain text. Are there any good ways to use Python and send emails without having to keep my password as plain text?</p>
  
  <p>I also saw this on StackOverflow:
  <a href="https://stackoverflow.com/questions/16683732/python-smtplib-security">Python smtplib security</a>
  but the answer is not completely helping me resolve this conflict. However, I'm not ready to give up yet.</p>
  
  <hr>
  
  <p>Some more information: I'm trying to set up my Raspberry Pi as a server that scrapes through a website. When a specific thing about the website changes, I want to be notified via email. However, I don't want to leave my Pi sitting around with a script that has my username and password in plain text.</p>