So I followed instructions here (http://rpi.tnet.com/project/faqs/smtp) to get SMTP setup. Those instructions included changes to /etc/ssmtp/ssmtp.conf ...
Code: Select all
AuthUser=youruserid@gmail.com
AuthPass=userpass
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YESNote that I am not, yet, trying to run the script at boot up time.
The problem I am having is that I get a long error message (when I run the script via the IDLE3) the important parts of which seem to be:
I also received an email sent to my main Google account the subject of which was "Google Account: sign-in attempt blocked". But I have received that message only once although I have tried the script many times.SMTPAuthenticationError: (534
Please log in via your web browser and then try again
Learn more at https://support.google.com/mail/bin/ans ... swer=78754
I've tried every corrective action I've come across but it still doesn't work. I am wondering if I am even on the right track. It seems very strange that I now have the email name and password I've set up for the RPi in both /etc/ssmtp/ssmtp.conf and in the python script. Why would they need to be in both places?
I am also wondering if I should try another email system such as Yahoo or Hotmail. But if possible I would like to stick to Gmail.
I've been banging my head against this wall for about three hours so if anyone has any suggestions I will sure appreciate it.
Thanks, Bob