Ropo Posted November 13, 2016 Share Posted November 13, 2016 Hi, I have Unraid 6.2.4 Pro and I want send email after wakeup or sleeping server. How is build in function/command for send email? I will use pre/post scripts in S3 sleeping function. Many thanks for any answer Quote Link to comment
Squid Posted November 13, 2016 Share Posted November 13, 2016 The raw command would be sendmail http://www.computerhope.com/unix/usendmai.htm But it would probably be far easier to use the built-in notification system (/usr/local/emhttp/plugins/dynamix/scripts/notify) notify [-e "event"] [-s "subject"] [-d "description"] [-i "normal|warning|alert"] [-m "message"] [-x] [-t] [add] create a notification use -e to specify the event use -s to specify a subject use -d to specify a short description use -i to specify the severity use -m to specify a message (long description) use -x to create a single notification ticket use -t to force send email only (for testing) all options are optional Quote Link to comment
Ropo Posted November 16, 2016 Author Share Posted November 16, 2016 Squid, "Notify" is interesting but how I do notify "event/trigger" due to sleeping and wake-up with this script? I know how works the command "notify". My UnRaid server now announces and sends e-mails before go to sleeping and wake-up from sleep. Squid, many thanks for good idea! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.