C# send e-mail to outlook exchange contact e-mail address RRS feed

  • Question

  • I read form outlook contacts my contacts and the I add the contact to MailMessage mail.To.Add("John Doe ") but I receive this error: The specified string is not in the form required for an e-mail address.

    How can I resolve this? when I read from outlook the contacts the result for email address is a long string like this(only for Exchange account types) and I parse to get the last cn= value: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=John Doe

    How can I read the correct e-mail address from an exchange account (jDoe@example.com) or other method to send e-mail?

    • Moved by Min Zhu Monday, June 25, 2012 9:34 AM (From:Windows Presentation Foundation (WPF))
    Friday, June 22, 2012 10:00 AM


All replies