in src/main/java/org/apache/commons/mail/Email.java [1272:1294]
public Email setBounceAddress(final String email)
{
checkSessionAlreadyInitialized();
if (email != null && !email.isEmpty())
{
try
{
this.bounceAddress = createInternetAddress(email, null, this.charset).getAddress();
}
catch (final EmailException e)
{
// Can't throw 'EmailException' to keep backward-compatibility
throw new IllegalArgumentException("Failed to set the bounce address : " + email, e);
}
}
else
{
this.bounceAddress = email;
}
return this;
}