From c21d3061eceba74f5d757f4353b98966e4261f8b Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Thu, 25 Aug 2022 22:30:21 +0200 Subject: [PATCH] [mail] Correct action names (#13318) Signed-off-by: Mark Herwege --- bundles/org.openhab.binding.mail/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.mail/README.md b/bundles/org.openhab.binding.mail/README.md index 0f4940bcd..1591281fa 100644 --- a/bundles/org.openhab.binding.mail/README.md +++ b/bundles/org.openhab.binding.mail/README.md @@ -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 URL)` +* `boolean success = sendMailWithAttachment(String recipient, String subject, String text, String URL)` +* `boolean success = sendMailWithAttachments(String recipient, String subject, String text, List 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 URL)` +* `boolean success = sendHtmlMailWithAttachment(String recipient, String subject, String htmlContent, String URL)` +* `boolean success = sendHtmlMailWithAttachments(String recipient, String subject, String htmlContent, List 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 attachmentUrlList = newArrayList( "http://some.web/site/snap.jpg¶m=value", "file:///tmp/201601011031.jpg") val mailActions = getActions("mail","mail:smtp:sampleserver") -mailActions.sendHtmlMail("mail@example.com", "Test subject", "

Header

This is the mail content.", attachmentUrlList) +mailActions.sendHtmlMailWithAttachments("mail@example.com", "Test subject", "

Header

This is the mail content.", attachmentUrlList) ``` ## Mail Headers