

The Outlook Items collection object is used for accessing and enumerating items in Outlook folders. Account account = null string accountList = string. Select POP3 or IMAP (IMAP is recommended) Enter in incoming mail server.
How to set up two email accounts in outlook 2000 code#
In the following code listing, I enumerated the accounts collection and printed the user name and e-mail associated with the account.Ĭ# code example Outlook. By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them.

You can get a reference to the Accounts collection via the NameSpace object. I have all the information, set up the accounts but - Answered by a verified Email technician We use cookies to give you the best possible experience on our website. 5 On the General tab of the Mail Account Properties window: Enter a friendly name for this account. The Mail Account Properties window appears. In Microsoft Outlook 20, on the File tab, Select Info and under Account Information panel you can see Account Settings options, where you can create. Under Connected accounts select 'Other email accounts', fill in the details to connect your second account then click OK. Select Email from the left hand menu then the Sync email sub-menu. There are no way to programmatically add or remove an Account using the Outlook object model. In the Add Service to Profile box, select Internet E-mail, and click OK. In your mailbox click the Settings cog in the top right, then select 'View all Outlook settings'. The Outlook Accounts object is a collection of Account objects and allows you to get a reference to all the accounts for a given profile, identify the type of account and use a specific account to send e-mails.
