I read My contacts from my Outlook contacts and then add the contact to MailMessage mail.To.Add("John Doe <John Doe>") , but I get this error:
The specified string is not in the form required for the email address.
How can i solve this? when I read from Outlook contacts, the result for the email address is a long string like this (only for Exchange account types) and I want to get the last value cn =: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=John Doe
How can I read the correct email address from my Exchange account ( jDoe@example.com ) or another method to send email?
source share