Jump to content

Mailversand aus den User Scripts


Go to solution Solved by cz13,

Recommended Posts

  • Solution

Im Backup Script von mgutt werden die emails über die unraid notification verschickt:

 

# notification

if [[ $message == "Error"* ]]; then

notify "Backup failed!" "$message"

elif [ "$notification_success" == 1 ]; then

notify "Backup done." "$message"

fi

 

quelle: 

 

  • Thanks 1
Link to comment

Danke, das hat mir geholfen!

 

Hier jetzt meine Lösung, welche ich in den Scripten verwende:

/usr/local/emhttp/webGui/scripts/notify -i "xxxx" -s "xxxx" -d "xxxx" -m "xxxx"

 

Bitte die entsprechenden Infos eintragen (bei den xxxx).

Hier eine Auflistung (kann man auch sehen, wenn man die Datei /usr/local/emhttp/webGui/scripts/notify öffnet):

notify [-e "event"] [-s "subject"] [-d "description"] [-i "normal|warning|alert"] [-m "message"] [-x] [-t] [-b] [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 -l to specify a link (clicking the notification will take you to that location)
  use -x to create a single notification ticket
  use -r to specify recipients and not use default
  use -t to force send email only (for testing)
  use -b to NOT send a browser notification
  all options are optional

 

Danke noch mal!!

 

Gruß Bernd

 

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...