Details
-
Improvement
-
Resolution: Fixed
-
Major
-
12.3
-
None
Description
Right now we return a String but it would be nicer to return a typed object which brings several advantages:
- It offers more APIs (for example to get the user name in the email, the domain name, etc)
- It provides a type to use in a displayer
The reason for choosing InternetAddress is because it's standard (in javamail) and we already use it in the API for the mail sender, and we already have a Converter to convert from String to InternetAddress (which extends Address which is abstract).
It could be better to use our own type. To be decided quickly.
Attachments
Issue Links
- depends on
-
XWIKI-17293 Add ability to convert from String to InternetAddress and vice versa
- Closed