]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mail] Correct action names (#13318)
authorMark Herwege <mherwege@users.noreply.github.com>
Thu, 25 Aug 2022 20:30:21 +0000 (22:30 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Aug 2022 20:30:21 +0000 (22:30 +0200)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
bundles/org.openhab.binding.mail/README.md

index 0f4940bcd42d9d9ed02ea9c463b8007ebfd50b42..1591281fa417be70b023ecfcd537f1d625d2d774 100644 (file)
@@ -89,11 +89,11 @@ This binding includes rule actions for sending email.
 Six different actions available:
 
 * `boolean success = sendMail(String recipient, String subject, String text)`
-* `boolean success = sendMail(String recipient, String subject, String text, String URL)`
-* `boolean success = sendMail(String recipient, String subject, String text, List<String> URL)`
+* `boolean success = sendMailWithAttachment(String recipient, String subject, String text, String URL)`
+* `boolean success = sendMailWithAttachments(String recipient, String subject, String text, List<String> URL)`
 * `boolean success = sendHtmlMail(String recipient, String subject, String htmlContent)`
-* `boolean success = sendHtmlMail(String recipient, String subject, String htmlContent, String URL)`
-* `boolean success = sendHtmlMail(String recipient, String subject, String htmlContent, List<String> URL)`
+* `boolean success = sendHtmlMailWithAttachment(String recipient, String subject, String htmlContent, String URL)`
+* `boolean success = sendHtmlMailWithAttachments(String recipient, String subject, String htmlContent, List<String> URL)`
 
 The `sendMail(...)` send a plain text mail (with attachments if supplied).
 The `sendHtmlMail(...)` send a HTML mail (with attachments if supplied).
@@ -125,7 +125,7 @@ val List<String> attachmentUrlList = newArrayList(
   "http://some.web/site/snap.jpg&param=value",
   "file:///tmp/201601011031.jpg")
 val mailActions = getActions("mail","mail:smtp:sampleserver")
-mailActions.sendHtmlMail("mail@example.com", "Test subject", "<h1>Header</h1>This is the mail content.", attachmentUrlList)
+mailActions.sendHtmlMailWithAttachments("mail@example.com", "Test subject", "<h1>Header</h1>This is the mail content.", attachmentUrlList)
 ```
 
 ## Mail Headers