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?
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?