I\'m having problems with parse method when usising ñ
character:
essage.setRecipients(Message.RecipientType.TO, internetAddress.parse(\"somedir.
Verify that your ñ is actually an n-tilde. The following works perfectly for me
InternetAddress[] list = InternetAddress.parse("fred.joñes@example.com", false);
for (InternetAddress a : list) {
System.out.println("[" + a + "]");
}
It also works when replacing the ñ with a unicode escape (in the source .java file)
InternetAddress[] list = InternetAddress.parse("fred.jo\u00F1es@example.com", false);
You could try replacing it like this just as a test.
Edit: BTW I had also used parse("...") with the address and no second parameter, and passed true
for strict, both of which also worked.