Hi!
I’m getting an exception:
com.aspose.email.system.exceptions.FormatException: An invalid character was found in the mail header.
when passing string with dot and comma to “To” header:
MapiMessage message = new MapiMessage();
HeaderCollection headers = message.getHeaders();
String to = "qwerty.,string";
headers.add_(getTo().toString(), to);
It would also be very helpful, if you add the exact header and the exact invalid character to exception message, smth like:
com.aspose.email.system.exceptions.FormatException: An invalid character (,) was found in the mail header: qwerty.,string
Thanks!