Hi,
After connecting to exchange and filter the emails
ExchangeService ews = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
foreach (EmailMessage message in unreadMessages)
{
message.Load();
string temp = message.Subject;
}
the strange thing is that my email subject is not the one that is send for example, if i send a email with the subject DEMO|502|Marcio|20150909|10|100 when i do message.Subject it returns DEMO|502|Marcio|20150909|10|001
When i split the message.Subject string by the | and try to convert the last string to int32 it gives a error saying that it cant convert.
When i convert the subject to charArray i get an extra char between the last "1" and "00", unicode 8207, an right to left mark.
Is there any way to remove this and get the correct subject (DEMO|502|Marcio|20150909|10|100).
Best Regards, Pedro Soeiro.
- Moved by CoolDadTxMVP Friday, September 11, 2015 4:59 PM Exchange related