anoved / OctoPrint-EmailNotifier

Receive email notifications when OctoPrint jobs are complete. Currently broken. Please fork and fix!
GNU Affero General Public License v3.0
16 stars 35 forks source link

SMTP Authentication Error #6

Closed Nurgak closed 8 years ago

Nurgak commented 8 years ago

When I try to test yagmail it throws an SMTPAuthenticationError. This is because Gmail doesn't consider it secure enough.

yagmail.SMTP('sendingmail@gmail.com').send('receivingmail@gmail.com', 'Test', 'This is a test')

Of course one has to do yagmail.register('sendingmail@gmail.com', 'password') first.

To overcome that, one has to log in to sendingmail@gmail.com and go to My Account (upper left corner), Sign-in & security. At the very bottom, under Connected apps & sites, there's an option Allow less secure apps, this must be turned on for yagmail to work properly.

anoved commented 8 years ago

Welcome to the Wild West. :)

Good point, though. Most appropriate resolution would be to add a Setup section to the Readme with a note like yours explaining how to allow gmail to accept yagmail, agreed?

Nurgak commented 8 years ago

Sure, whatever helps. I thought it would save people some time because it wasn't very trivial.

anoved commented 8 years ago

Also discussed in the yagmail docs: https://github.com/kootenpv/yagmail#errors