Unable to change ender account while sending mail

Add-in Express™ Support Service
That's what is more important than anything else

Unable to change ender account while sending mail
want to change sender account in Outloo2003  
Sanat Ojha




Posts: 6
Joined: 2009-11-04
Hello Sir,
I want to change the sender mail account while sending the mail in outlook 2003.I didnt find any direct method to do so.
for that here i want to get Account command bar control so that i can execute it to change mail account at runtime.


Outlook._Inspector objInspectr1;
            Office.CommandBarControl objCommandBarContrl;
            Office.CommandBars objCommndBars;
            Office.CommandBarPopup objCommandbarPopup;


            Outlook._Inspector objInspectr = this.InspectorObj as Outlook.Inspector; 
            objCommndBars = objInspectr.CommandBars;
            objCommandBarContrl = objCommndBars.FindControlOffice.MsoControlType.msoControlPopup, 31124, "Accou&ts", 1);


but I am not getting the correct value.
So please help me and if there is any direct method for lower versions then please let me know.
Posted 10 Nov, 2009 01:35:51 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Sanat,

objCommandBarContrl = objCommndBars.FindControl(Office.MsoControlType.msoControlPopup, 31124, Type.Missing, Type.Missing);



Andrei Smolin
Add-in Express Team Leader
Posted 10 Nov, 2009 04:07:39 Top