I am trying to get the email address entered in the To field to create a mail box.
I am trying to get the Recipient's Address property, which, according to VS, should provide me with an email.
Instead, I get a line that looks like this:
"/c=US/a=att/p=Microsoft/o=Finance/ou=Purchasing/s=Furthur/g=Joe"
How can I get the email address in the recipient field?
My code is:
List <string> emails = new List<string>(); if (thisMailItem.Recipients.Count > 0) { foreach (Recipient rec in thisMailItem.Recipients) { emails.Add(rec.Address); } } return emails;
c # visual-studio outlook vsto
Cat
source share