Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105919

Sending gmail with no clear password

Newsgroups comp.lang.python
Date 2016-03-28 12:55 -0700
Message-ID <fca9623b-8182-4f18-a2a1-a6dce2170a84@googlegroups.com> (permalink)
Subject Sending gmail with no clear password
From zljubisicmob@gmail.com

Show all headers | View raw


Hi,

I have a python3 script that runs 24/7 on linux (raspberry pi) server. 
It would be very nice for the script to be able to send an email message about certain statuses.

As the linux server is headless, I don't have an option to key in the password while starting the script.
Furthermore, from time to time I restart the server remotely, so password should be somewhere in the system but kept more secure than hardcoded in the python script.

I understand that I can send email by using let's say procedure from the https://rajivpandit.wordpress.com/2013/09/19/how-to-send-email-by-python/

On the link above there are two approaches. One with no need for any authentication or password, but that approach doesn't work.
It is written for python 2 but that is what I need.

What are my options?

Regards.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Sending gmail with no clear password zljubisicmob@gmail.com - 2016-03-28 12:55 -0700
  Re: Sending gmail with no clear password Erik <python@lucidity.plus.com> - 2016-03-28 21:41 +0100

csiph-web