Skip to content

Commit 38536ab

Browse files
authored
Introduce Apprise Email
Add Apprise email configuration to send emails without using mailx.
1 parent 873361a commit 38536ab

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

script-config.conf

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CONFIG_VERSION="3.4" #DEV VERSION
88
### NOTIFICATION SETTINGS ###
99

1010
# Address where the output will be emailed to.
11+
# This method uses "mailx", if it's not available or doesn't work, other
12+
# methods are available, keep reading below.
1113
# If you do not want to receive emails and rely on other notification
1214
# methods, leave these fields empty.
1315
EMAIL_ADDRESS="destination-email-goes-here"
@@ -32,9 +34,9 @@ HEALTHCHECKS_URL="https://hc-ping.com/"
3234

3335
# Apprise can send a notification to almost all of the most popular
3436
# notification services available to us today such as:
35-
# Telegram, Discord, Slack, Amazon SNS, Gotify, etc.
36-
# It can be used as an evolution of Hook Notification, which will be
37-
# dismissed in the future, eventually.
37+
# Telegram, Discord, Slack, Amazon SNS, Gotify, you name it.
38+
# It supersedes "Hook Notification", which will be
39+
# eventually dismissed in the future.
3840
# Set APPRISE to 1 to enable, 0 to disable.
3941
# Set APPRISE_URL according to the service you want to invoke.
4042
# Set APPRISE_ATTACH to get the report attached to the notification if a
@@ -51,6 +53,19 @@ APPRISE_ATTACH=0
5153

5254
APPRISE_BIN="$(command -v apprise)"
5355

56+
# Apprise email
57+
# Use Apprise internal service to send emails, if mailx doesn't work.
58+
# This setting does not require to enable Apprise notification feature.
59+
# To configure this properly, please read this documentation
60+
# https://github.com/caronc/apprise/wiki/Notify_email
61+
# This example below uses a custom SMTP. If you're using a public one
62+
# like Gmail, Outlook and so on, the config is much easier.
63+
# Please check Apprise docs!
64+
# APPRISE_EMAIL_URL='mailtos://_?user=senderusername@domain.com&pass=mySuperSafePWD!&smtp=smtp.mymailserver.com&from=sender@domain.com&to=recepient@gmail.com'
65+
66+
APPRISE_EMAIL=0
67+
APPRISE_EMAIL_URL=''
68+
5469
# Use Telegram to report script execution summary (not the whole report)
5570
# Set 1 to enable. Create a bot using @botfather, then copy the API token.
5671
# To get your chat ID, use @getidsbot

0 commit comments

Comments
 (0)