Access Outlook email account using user name and password in ASP.Net

Last Reply 8 days ago By dharmendr

Posted 8 days ago

Dear Programmers,

How to set up Outlook email account

Since last question was read and save attachment from outlook which i was successful because of your help.

Now i have another issue to tell you, I am using this below code to access my inbox 

Outlook.Application Application = new Outlook.Application();
Outlook.Accounts accounts = Application.Session.Accounts;

But i want that the account must be set up with useremail and password not getting by for example user email = and password = 123456. Another thing is my account is configured with active directory in that case i want to allow automatically whenever its use my credentials.

How can i do that?

Thanks again for your support