I\'m having problems with parse method when usising ñ character:
essage.setRecipients(Message.RecipientType.TO, internetAddress.parse(\"somedir.
JavaMail's address parser is telling you something very important here: You may only use normal printable ASCII characters on the left side of the @ sign in an email address. Check out RFC 5322 for the ABNF for valid email addresses:
addr-spec = local-part "@" domain
local-part = dot-atom / quoted-string / obs-local-part
dot-atom = [CFWS] dot-atom-text [CFWS]
dot-atom-text = 1*atext *("." 1*atext)
atext = ALPHA / DIGIT / ; Printable US-ASCII
"!" / "#" / ; characters not including
"$" / "%" / ; specials. Used for atoms.
"&" / "'" /
"*" / "+" /
"-" / "/" /
"=" / "?" /
"^" / "_" /
"`" / "{" /
"|" / "}" /
"~"
quoted-string = [CFWS]
DQUOTE *([FWS] qcontent) [FWS] DQUOTE
[CFWS]
qcontent = qtext / quoted-pair
quoted-pair = ("\" (VCHAR / WSP)) / obs-qp
qtext = %d33 / ; Printable US-ASCII
%d35-91 / ; characters not including
%d93-126 / ; "\" or the quote character
obs-qtext
Make sure that the address is correct before you go any further.