From a72585d93f37bcd71c7e5691abb4b0c6ecb392c6 Mon Sep 17 00:00:00 2001 From: Rosi2143 Date: Sat, 21 Dec 2019 09:48:28 +0100 Subject: [PATCH 1/2] update smtp server name to have it consistent Use sampleimap - instead of sampleserver - to keep it consistent in the example --- bundles/org.openhab.binding.mail/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.mail/README.md b/bundles/org.openhab.binding.mail/README.md index 0fcc00421dae4..bd784785030cc 100644 --- a/bundles/org.openhab.binding.mail/README.md +++ b/bundles/org.openhab.binding.mail/README.md @@ -110,7 +110,7 @@ Using different character sets may produce unwanted results. Examples: ``` -val mailActions = getActions("mail","mail:smtp:sampleserver") +val mailActions = getActions("mail","mail:smtp:sampleimap") mailActions.sendMail("mail@example.com", "Test subject", "This is the mail content.") mailActions.sendMail("mail1@example.com, mail2@example.com", "Test subject", "This is the mail content sent to multiple recipients.") From f806a322430f32eeac77b688388557ce786c6778 Mon Sep 17 00:00:00 2001 From: Rosi2143 Date: Sat, 21 Dec 2019 10:27:10 +0100 Subject: [PATCH 2/2] correct example to use samplesmtp instead MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make the example consistent with re-using the defined samplesmtp in mail.things Also-by: Michael Roßner Signed-off-by: Rosi2143 --- bundles/org.openhab.binding.mail/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.mail/README.md b/bundles/org.openhab.binding.mail/README.md index bd784785030cc..a31145ebc402e 100644 --- a/bundles/org.openhab.binding.mail/README.md +++ b/bundles/org.openhab.binding.mail/README.md @@ -110,7 +110,7 @@ Using different character sets may produce unwanted results. Examples: ``` -val mailActions = getActions("mail","mail:smtp:sampleimap") +val mailActions = getActions("mail","mail:smtp:samplesmtp") mailActions.sendMail("mail@example.com", "Test subject", "This is the mail content.") mailActions.sendMail("mail1@example.com, mail2@example.com", "Test subject", "This is the mail content sent to multiple recipients.")