Answered by:
C# send e-mail to outlook exchange contact e-mail address

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
Answers
-
Try http://social.msdn.microsoft.com/Forums/en-US/outlookdev/threads
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:29 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, July 9, 2012 4:51 PM
Monday, June 25, 2012 1:44 PM
All replies
-
Can you tell us which version of outlook are you trying to use.Friday, June 22, 2012 3:07 PM
-
Hi Bradutz,
Since your question is not about WPF, we have moved your thread to Where is the Forum for... forum to help you find an appropriate forum.
Have a nice day!
Min Zhu [MSFT]
MSDN Community Support | Feedback to us
Monday, June 25, 2012 9:35 AM -
Try http://social.msdn.microsoft.com/Forums/en-US/outlookdev/threads
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:29 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, July 9, 2012 4:51 PM
Monday, June 25, 2012 1:44 PM