UPDATE 2023-Jun-04: Remove references to python2
- Tested to work on OctoPrint
1.9.0
UPDATE 2020-Sep-30: Version 0.2.0 updated with python3 support
- Tested on OctoPrint
1.4.x
Recieve email notifications when OctoPrint jobs are STARTED, COMPLETED, FAILED or CANCELLED.
Forked from
kotl/OctoPrint-EmailNotifier
which is forked fromericli1018/OctoPrint-EmailNotifier
which is forked fromanov/OctoPrint-EmailNotifier
Install via the OctoPrint Plugin Manager manually using this archive URL:
https://github.com/idcrook/OctoPrint-EmailNotifier/archive/main.zip
Your outgoing email account password is not stored with OctoPrint's settings. It is retrieved from your system keyring. Store your password from a Python prompt on your OctoPrint system using yagmail.register
:
$ ~/oprint/bin/python
>>> import yagmail
>>> import keyring
>>> yagmail.register("SMTP username", "SMTP password")
For some accounts, your SMTP username may be your complete [email protected]
address.
To use yagmail (and thus OctoPrint-EmailNotifier) with Gmail, you may need to allow less secure apps to access your account.
- Server:
smtp.gmail.com
- Serverport:
587
- Use TLS
If on Raspberry Pi, when you try to [Send a test email] and you encounter this error:
ImportError: libxslt.so.1: cannot open shared object file: No such file or directory
Install the system library:
$ sudo apt install libxslt-dev
# on later systems, if that does not work # $ sudo apt install libxslt1-dev
Loosely based on OctoPrint-Pushbullet.
Uses yagmail to send email.
Licensed under the terms of the AGPLv3.