I am using the Aspose.EMail library to manage a RedirectTo rule on a mailbox. After successfully connecting to my Exchange Server (2010 SP3) using my own credentials I call the method GetInboxRules() against the EWSClient instance. This call results in a System.FormatException - “The specified string is not in the form required for an e-mail address”. When I try to specify my own mailbox in the method call GetInboxRules("firstname.lastname@example.org") I still receive the same exception.
Thank you for contacting Aspose Support team.
We have tested this issue at our end with the latest version of the API and our test Exchange Server account. There is no issue raised which we think is because of non-availability of hyphen in the mailbox address. We are trying to establish an email account with such type of email address and share our feedback with you after further testing. Meanwhile, if you couldl share a test account credentials with us that has hyphen in its email address, it will help us test the issue quickly for assisting you further.