Search in sources :

Example 1 with Tuple

use of ninja.postoffice.common.Tuple in project ninja by ninjaframework.

the class CommonsmailHelperImpl method createValidEmailFromString.

@Override
public Tuple<String, String> createValidEmailFromString(String email) throws AddressException {
    InternetAddress internetAddress = new InternetAddress(email);
    Tuple<String, String> tuple = new Tuple<String, String>(internetAddress.getAddress(), internetAddress.getPersonal());
    return tuple;
}
Also used : InternetAddress(javax.mail.internet.InternetAddress) Tuple(ninja.postoffice.common.Tuple)

Aggregations

InternetAddress (javax.mail.internet.InternetAddress)1 Tuple (ninja.postoffice.common.Tuple)1