In the next screen, you will need to enter your name, email address and login information that you use for your Yahoo/Gmail account. In the server information box enter ‘pop.gmail.com’ for incoming server and ‘smtp.gmail.com’ in outgoing server box for Gmail. For Yahoo, enter ‘pop.mail.yahoo.com’ for incoming and ‘smtp.mail.yahoo.com’ for outgoing server.
Now click on the ‘More Settings’ button and in the pop up box select the ‘Outgoing Server’ tab. Here, check on the box that says ‘My Outgoing server requires authentication’.
On Next step You have to click on the advanced tab and enter 995 as incoming server and 465 as outgoing server(same for Gmail and Yahoo). Click on ok to close the pop-up box, and then click on ‘Test Account Settings’. Once the test is done, finish the new e-mail setup and you can send/receive mails using your Yahoo/Gmail account from Outlook. Note: For Gmail, you need to first login to your account on the browser, go to Settings > Forwarding and POP and enable POP for all mail.