Help on MailItems and AD addresses

G

Guest

2 hours of Google hasn't turned up anything useful on this problem: How can I
reply to an Email address retrieved from an Exchange server?

I am using Interop Outlook.MAPIFolder to retrieve Outlook.MailItem's. I
want to send an automated response to the sender of each MailItem, but
MailItem.SenderEmailAddress is something like "/O=COMPANY/OU=ADMIN
GROUP/CN=RECIPIENTS/CN=USERNAME". I don't know what that is, though I assume
it has something to do with active directory.

I can send messages using SMTP addresses. Is there a straightforward way to
retrieve the SMTP address for an Exchange user in a situation like this?

MailItem also exposes a tempting public method "Reply()", which produces
another MailItem object with a method "Send()", but when I call it I get an
exception trying to cast the Reply to a MailItem. Can anyone offer a working
example of how to reply using MailItems?
 
W

Willy Denoyette [MVP]

Dave Booker said:
2 hours of Google hasn't turned up anything useful on this problem: How can I
reply to an Email address retrieved from an Exchange server?

I am using Interop Outlook.MAPIFolder to retrieve Outlook.MailItem's. I
want to send an automated response to the sender of each MailItem, but
MailItem.SenderEmailAddress is something like "/O=COMPANY/OU=ADMIN
GROUP/CN=RECIPIENTS/CN=USERNAME". I don't know what that is, though I assume
it has something to do with active directory.

I can send messages using SMTP addresses. Is there a straightforward way to
retrieve the SMTP address for an Exchange user in a situation like this?

MailItem also exposes a tempting public method "Reply()", which produces
another MailItem object with a method "Send()", but when I call it I get an
exception trying to cast the Reply to a MailItem. Can anyone offer a working
example of how to reply using MailItems?



This question is not related to C#, you will get much better answers when posting to the
microsoft.public.exchange.development NG.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top