public class EmailMessageUtils extends Object
| Constructor and Description |
|---|
EmailMessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
jakarta.mail.internet.InternetAddress |
createAddress(String email,
String name)
It's creating an
InternetAddress object from email and name strings. |
jakarta.mail.internet.InternetAddress[] |
createAddresses(Set<EmailParticipant> recipients)
It's creating an array of
InternetAddress objects from a list of EmailParticipant objects. |
String |
decodeData(String data)
Return decoded and normalized string.
|
public jakarta.mail.internet.InternetAddress createAddress(String email, String name) throws UnsupportedEncodingException, jakarta.mail.internet.AddressException
InternetAddress object from email and name strings.email - the mail address string (RFC822 format)name - the personal nameInternetAddress objectUnsupportedEncodingException - if the personal name can't be encoded in the given charsetjakarta.mail.internet.AddressException - if the email address doesn't correspond to the specification RFC822public jakarta.mail.internet.InternetAddress[] createAddresses(Set<EmailParticipant> recipients)
InternetAddress objects from a list of EmailParticipant objects.
If any element in the parameter is incorrect then it will miss in the result.recipients - the list of recipientsInternetAddress objectspublic String decodeData(String data)
MimeUtility and Normalizer for its work.data - encoded string dataCopyright © 2023. All rights reserved.