apprise python library to send notification email code example

Example 1: how to use Apprise library cli

pip install apprise

Example 2: how to use Apprise library cli

# Send a notification to as many servers as you want
# as you can easily chain one after another:
apprise -t 'my title' -b 'my notification body' \
   'mailto://myemail:[email protected]' \
   'pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b'

# If you don't specify a --body (-b) then stdin is used allowing
# you to use the tool as part of your every day administration:
cat /proc/cpuinfo | apprise -t 'cpu info' \
   'mailto://myemail:[email protected]'

# The title field is totally optional
uptime | apprise \
   'discord:///4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js'

Tags:

Misc Example