General Mail API
Version 5.2 by Vincent Massol on 2020/05/11 16:28
Mail APIs not related to sending emails |
Type | JAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Bundled With | XWiki Standard |
Table of contents
Description
Obfuscation
- Find out if email obfuscation is on or not:
- from Java:@Inject
private GeneralMailConfiguration configuration;
...
if (configuration.shouldObfuscate())
... - From Velocity:$services.mail.general.shouldObfuscate()
- from Java:
- Obfuscate an email address:
- from Java:@Inject
private EmailAddressObfuscator obfuscator;
...
obfuscator.obfuscate(InternetAddress.parse("john@doe.com")[0]) - From Velocity:#if ($services.mail.general.obfuscate('john@doe.com'))
...
- from Java: