
Necesary Software 
-VIT
-Chrome or some modern browser install to do the Login in azure
-Notepadd++ or notepad for reading the big logs
-HMAil Server (local connection only)


Objective: Getting MS mail  to work in the VIT

Database updates:
Create another db(configuration), we already have create it and will only paste the folder in the correct path(db server)
-Here we hosting all the OauthTokens for Azure

External links we need to aaccess: 
https://login.microsoftonline.com/1d7a1a92-ab12-44a0-abc7-54710983b297/oauth2/v2.0/authorize 

Create 3 schudule task on the server.
-get mail
-refresh token
-copy from Stmp server to POP Server 

Full Step by step plan.:

1. create the DB of configuration, (Configuration)Add the information, Tennantid, mailClient...
2. Create the project in Projects (aditional sql.txt)
3. Assign the DataStore
-Make sure you have the correct path on both
4. copy the Configuration.cen file to issuTracker folder (Program Files(x86)\Vector\IssueTrackerServer) also the same structure in the Folder
5. In helpDesk02.def/tblMailIntegration create tlastporcessedEmail and nconfigurationItem (aditional sql.txt)
6. install c++ lastest pack for chilkat to work (VC_redist.x86.exe for server2012)
7. make sure the server can reach this url
https://login.microsoftonline.com/1d7a1a92-ab12-44a0-abc7-54710983b297/oauth2/v2.0/authorize  
(internet explorer can't reach it,install other browser and(ChromeSetup,exe) set it as default )
8. install getToken.exe (Get Token) [To install just Paste where it shuld be running)
9 Create a Schudule task for Get Token to run every 45 minutes
10 Create a schudule task for Run Mail Integration 
11. Run GetToken.exe and login with the User Account
12. test the Mail Integration

