java - How to send a mail when a mail id itself contains spaces? -


how can send mail mail id contains spaces in it. eg. group mail id have mail id dl-blr f1 a2@company.com

i tried in java using javax jars says illegal whitespace error.

if have e-mail address contains spaces have pass false strict parameter in internetaddress constructor, this:

new internetaddress("dl-blr f1 a2@company.com", false); 

this skip strict checks rfc822 (including white spaces).


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -