Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
[mail] Clarify recipient parameter in rule action (#6211)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
  • Loading branch information
J-N-K authored and wborn committed Oct 13, 2019
1 parent e5a85d5 commit 2e309c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundles/org.openhab.binding.mail/README.md
Expand Up @@ -98,6 +98,8 @@ Six different actions available:
The `sendMail(...)` send a plain text mail (with attachments if supplied).
The `sendHtmlMail(...)` send a HTML mail (with attachments if supplied).

`recipient` can be a single address (`mail@example.com`) or a list of addresses, concatenated by a comma (`mail@example.com, mail2@example.com`).

Since there is a separate rule action instance for each `smtp` thing, this needs to be retrieved through `getActions(scope, thingUID)`.
The first parameter always has to be `mail` and the second is the full Thing UID of the SMTP server that should be used.
Once this action instance is retrieved, you can invoke the action method on it.
Expand Down

0 comments on commit 2e309c3

Please sign in to comment.