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
Post a Comment