We are trying to create MSG for a fax integration solution which uses the Microsoft Fax Address (IMCEAFAX) format such as...Fax User[Fax:2123654852]...or...Fax User@/FN=fax#/VN=voice#/CO=My Company/CI=Local...however the error message when assigning the MapiRecipient.EmailAddress with anything other than a standard email address is rejected with the error message "System.ArgumentException: The recipient address is not in a recognized format.".
How do we override the To Address so it uses a FAX email address type (IMCEAFAX) instead of SMTP style addressing? We've tried using the MapiProperty PR_EMAIL_ADDRESS, but it does not read properly within Outlook - it seems to still be using the MapiRecipient.EmailAddress property.
string faxAddress = "My Fax User@/FN=fax#/VN=voice#/CO=My Company/CI=Local";
MapiProperty propEmailAddress = new MapiProperty(MapiPropertyTag.PR_EMAIL_ADDRESS, Encoding.UTF8.GetBytes(faxAddress));
recipientTo.SetProperty(propEmailAddress);
If we try using MailAddress with MailMessage it also complains about FAX-style addresses with the message
"System.FormatException: The specified string is not in the form required for an e-mail address." - thus preventing us from using Aspose for .NET integration.
Any suggestions?