Page 1 of 1

SMTP email -- worked fine, now nothing

Posted: Sat Nov 07, 2020 9:08 pm
by mmkw43
I had a python script I wrote a few years ago that sends email and it always worked flawlessly. My password is right, using gmail and port 587. Now, I tried to use it today (did NOT touch the code whatsoever) and it doesn't work at all.

Has "something" changed?
-- thanks

Re: SMTP email -- worked fine, now nothing

Posted: Sat Nov 07, 2020 9:21 pm
by trejan
mmkw43 wrote:
Sat Nov 07, 2020 9:08 pm
Has "something" changed?
Maybe? Can't see your code and no idea how it is failing so "maybe" is all you get...

Re: SMTP email -- worked fine, now nothing

Posted: Sat Nov 07, 2020 10:04 pm
by mmkw43
Haven't touched the code -- thought a quick question regarding any other possible factors is a place to start.

Maybe.

I may have to check the gmail security settings again -- I'm sure that still gets in the way? If so, my bad.

Re: SMTP email -- worked fine, now nothing

Posted: Sun Nov 08, 2020 2:35 pm
by pcmanbob
Gmail has a habit of changing your security setting for allow less secure apps to off if the account has not been used for a while.

It might also see the pi as a new device so you will have a security email from gmail , asking if this was you that tried to connect , you need to click on the link and confirm it was you on your device.

Once you have checked these two possible problems , if you still cant send mail then you need to give more details about your set up.

include
pi model
OS running on it
which smtp server you are using to send mail
and your code thats no longer working.

Re: SMTP email -- worked fine, now nothing

Posted: Sun Nov 08, 2020 3:51 pm
by mmkw43
thanks very much.