diff options
author | Christian Hesse <mail@eworm.de> | 2023-05-22 09:51:23 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-05-22 09:51:23 +0200 |
commit | 8284035ad8e945f70859c3a9a270058546d11cb6 (patch) | |
tree | 7ca5390225d853cec108b428b71780335ba1167c | |
parent | 4254b01a32a965a1850c6dc5c669dca34a64a297 (diff) |
doc/mod/notification-email: describe how to declare functions...
... to use them in own scripts.
-rw-r--r-- | doc/mod/notification-email.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/mod/notification-email.md b/doc/mod/notification-email.md index 61798e6..2186777 100644 --- a/doc/mod/notification-email.md +++ b/doc/mod/notification-email.md @@ -44,8 +44,8 @@ Usage and invocation There's nothing special to do. Every script or function sending a notification will now send it to your e-mail account. -But of course you can send notifications directly or use a function in your -own scripts. Give it a try: +But of course you can use the function to send notifications directly. Give +it a try: $SendEMail "Subject..." "Body..." @@ -54,6 +54,12 @@ methods: $SendNotification "Subject..." "Body..." +To use the functions in your own scripts you have to declare them first. +Place this before you call them: + + :global SendEMail; + :global SendNotification; + See also -------- |