---
title: "Comment by Rajesh Dooda on \"How to Read Emails Using Python?\" | Hashnode"
description: "it was working in the Gmail domain. but this process is not working in the outlook with different domain I got an error while using Outlook with the server host"
url: "https://hashnode.com/posts/how-to-read-emails-using-python/61f7274066fcfc728be1b231/comment/65a7fe2662cb1a99c6a96c7c"
---

[Discussion](https://hashnode.com/posts/how-to-read-emails-using-python/61f7274066fcfc728be1b231)

Comment [How to Read Emails Using Python?](https://hashnode.com/posts/how-to-read-emails-using-python/61f7274066fcfc728be1b231)

[Rajesh Dooda](https://hashnode.com/@rajeshdooda)

[Jan 17, 2024](https://hashnode.com/posts/how-to-read-emails-using-python/61f7274066fcfc728be1b231/comment/65a7fe2662cb1a99c6a96c7c)

it was working in the Gmail domain.

but this process is not working in the outlook with different domain

I got an error while using Outlook with the server host is **outlook.office365.com** port = 993

b'LOGIN failed.'

please give me the solution
