I am using aspose email to send out the mail. Rcently, I found that if I config the Receipt email address end with two ";" like 'AAA@hotmail.com;;', it will raise the exception as "An invalid character was found in the mail header", so is that exception on purpose?
MailMessage messaage = new MailMessage(abs@hotmail.com, AAA@hotmail.com;;);
Hi Jimmy,
Thank you for writing to Aspose support team.
According
to [http://tools.ietf.org/html/rfc2822#section-3.4 ](http://tools.ietf.org/html/rfc2822#section-3.4
),
semicolon is used for separation between different groups of addresses and, hence, Aspose.Email supposes that
one address is empty which does not correspond to RFC. While loading such a file, FileCompatabilityMode.SkipValidityChecking can be used, but we can
not help in creating new MailMessage with two “;” in the address. If you have any other query/inquiry in this regard, please feel free to write to us.