[mail] Correct action names (#13318)

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
Mark Herwege 2022-08-25 22:30:21 +02:00 committed by GitHub
parent 34bdc21370
commit c21d3061ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -89,11 +89,11 @@ This binding includes rule actions for sending email.
Six different actions available: Six different actions available:
* `boolean success = sendMail(String recipient, String subject, String text)` * `boolean success = sendMail(String recipient, String subject, String text)`
* `boolean success = sendMail(String recipient, String subject, String text, String URL)` * `boolean success = sendMailWithAttachment(String recipient, String subject, String text, String URL)`
* `boolean success = sendMail(String recipient, String subject, String text, List<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)`
* `boolean success = sendHtmlMail(String recipient, String subject, String htmlContent, String URL)` * `boolean success = sendHtmlMailWithAttachment(String recipient, String subject, String htmlContent, String URL)`
* `boolean success = sendHtmlMail(String recipient, String subject, String htmlContent, List<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 `sendMail(...)` send a plain text mail (with attachments if supplied).
The `sendHtmlMail(...)` send a HTML 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", "http://some.web/site/snap.jpg&param=value",
"file:///tmp/201601011031.jpg") "file:///tmp/201601011031.jpg")
val mailActions = getActions("mail","mail:smtp:sampleserver") 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 ## Mail Headers