Click here to Skip to main content
15,889,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii,
I am searching for getting the outlook's current user configured outgoing server address and its port number by using c sharp code.I want to read those setting values.

thanks in advance.!

What I have tried:

C#
public static void GetAccountForEmailAddress(Outlook.Application application)
{
Outlook.Accounts accounts = application.Session.Accounts;
  foreach (Outlook.Account account in accounts)
   {               
    // I want to get the outgoing smtp server address and its port number.
   }
}
Posted
Updated 5-Apr-16 1:47am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900