commit | c60f2f2526d3e1e4eaeb57a5c0f02f417141be63 | [log] [tgz] |
---|---|---|
author | Oliver Lietz <olli@apache.org> | Fri Apr 08 09:49:38 2016 +0000 |
committer | Oliver Lietz <olli@apache.org> | Fri Apr 08 09:49:38 2016 +0000 |
tree | 8d1ccc4f339ffabd4a58171769d014d68b8ebb1c | |
parent | d65096753e400bba824f03a1b89795a895092ed0 [diff] |
SLING-5644 Provide an messaging implementation based on Commons Email * adjust to latest Messaging API * make MailResult public * add test for failing transmission (authentication failure) git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1738226 13f79535-47bb-0310-9956-ffa450edef68
Provide an OSGi Configuration for SimpleMailBuilder
or a custom MailBuilder
to send messages using Apache Commons Email.
To extend or override SimpleMailBuilder
s configuration call MessageService#send(String, String, Map):Future<Result>
and supply a configuration map mail
within the third parameter:
{ "mail" : { "mail.subject": <String>, "mail.from": <String>, "mail.smtp.hostname": <String>, "mail.smtp.port": <int>, "mail.smtp.username": <String>, "mail.smtp.password": <String> } }