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 8607805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:27:07+00:00 2026-06-12T03:27:07+00:00

I am building a shared-addin for Outlook. Inside the code, I am creating a

  • 0

I am building a shared-addin for Outlook.

Inside the code, I am creating a reply email using MailItem.Reply() method
and discarding it later. I am using this to get the sender email address
for emails coming through Exchange server.

It was working fine for Outlook 2007.
But for Outlook 2010, the Reply method seems to opening the mail editor window.

I am on windows 7.

Is there any way to suppress that window or write seperate code based on Outlook version?

  • 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-06-12T03:27:09+00:00Added an answer on June 12, 2026 at 3:27 am

    If you plan on discarding the message – don’t create it to begin with (don’t use Reply() unless you intend on sending the message). You can use the Recipient class to resolve an Exchange users email address with minimal resource utilization.

    string senderEmail = string.Empty;
    Outlook.Recipient recipient = mailItem.Application.Session.CreateRecipient(mailItem.SenderEmailAddress);
    if (recipient != null && recipient.Resolve() && recipient.AddressEntry != null) 
    {
        Outlook.ExchangeUser exUser = recipient.AddressEntry.GetExchangeUser();
        if (exUser != null && !string.IsNullOrEmpty(exUser.PrimarySmtpAddress))
           senderEmail = exUser.PrimarySmtpAddress;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently tried building my own shared and weak pointers. Code that compiles using
I was recently building a certain shared library (ELF) targeting x86-64 architecture, like this:
I'm building multi tenant application with shared table structure using Microsoft SQL Server. I
I'm building a site for a client using django. It's been hosted on shared
Using bjam on ubuntu, I am building a c++ shared library and trying to
I'm building a multi-tenant app with a shared database using .NET MVC 3 and
after building the shared librrary using gcc, the shared library builds fine, but when
I'm building a shared library with f-no-rtti . Internally, this library throws std:invalid_argument and
Problem: I am building Android app in Eclipse which uses shared lib libgstreamer-0.10.so (GStreamer-android
I'm building a music events website and want to have a 'share this event'

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.