Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 814287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:29:45+00:00 2026-05-15T01:29:45+00:00

Okay, the specs have changed on this one somewhat. Maybe someone can help me

  • 0

Okay, the specs have changed on this one somewhat. Maybe someone can help me with this new problem.

Manually, what the user is doing is opening an new message in Outlook (2007 now) which has the “From…” field exposed. They open this up, select a certain account from the Global Address List, and send the message on behalf of that account.

Is this possible to do?

I can get the AddressEntry from the Global address list like so:

AddressList list = null;
foreach (AddressList addressList in _outlookApp.Session.AddressLists)
{
    if (addressList.Name.ToLower().Equals("global address list"))
    {
        list = addressList;
        break;
    }
}

if (list != null)
{
    AddressEntry entry = null;
    foreach (AddressEntry addressEntry in list.AddressEntries)
    {
        if (addressEntry.Name.ToLower().Equals("outgoing mail account"))
        {
            entry = addressEntry;
            break;
        }
    }
}

But I’m not sure I can make an Account type from the Address Entry. It seems to happen manually, when they select the address to send from. How do I mirror this in the Interop?

Thanks!

(My Original Question):

I developed a small C# program to send email using the Outlook 2007 interop. The client required that the mail not be send using the default account – they had a secondary account they needed used.

No problem – I used the Microsoft.Office.Interop.Outlook.Account class to access the availabled accounts, and choose the correct one.

Now, it turns out they need this to work in Outlook 2003. Of course, the Account class doesn’t exist in the Outlook interop 11.0.

How can I achieve the same thing with Outlook 2003?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:29:46+00:00Added an answer on May 15, 2026 at 1:29 am

    Sigh… seems I answer more of my own questions on StackOverflow…

    Anyway, this is how it’s done:

    (I think it works for the Outlook Interops 2003 and 2007, and doesn’t use Redemption. It may even be how this part of Redemption works, though I haven’t looked at that.)

    message.PropertyAccessor
        .SetProperty("http://schemas.microsoft.com/mapi/proptag/0x00410102",
        message.PropertyAccessor.StringToBinary(entry.ID));
    

    This schema entry and hex identifier corresponds to the MAPI property PR_SENT_REPRESENTING_ENTRYID. The ‘entry’ variable was acquired in the code snippet in the question.

    Took quite a bit of trawling through the web to find the pieces to make that work. Found that I had to use the PR_SENT_REPRESENTING_ENTRYID property in one place, the fact that 0x00410102 == PR_SENT_REPRESENTING_ENTRYID in another, and the fact that you have to call ‘StringToBinary’?… Don’t even ask… 🙂 Thanks to the people who had all the pieces posted!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, in python one can do this: def foo(monkeys): def bar(monkey): #process and return
Okay. I have this code on my site: <?php session_start(); include database.php; include bruger.php;
Okay, I've been struggling with this for a while now. I have a standard
Okay, I'm having some serious issues here. I'm new to this site, and new
Okay, This one is pretty simmilar to my last one, but I don't get
Okay so im working on this php image upload system but for some reason
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay, I've seen but haven't programmed in C# before. You can assume I'm competent
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my
Okay. I know this looks like the typical Why didn't he just Google it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.