# Getting the error while setting up email

**URL:** <https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 13, 2022, 8:09am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890 "2022-07-13T08:09:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.singla](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vivek.singla/32/16104_2.png) [@vivek.singla](https://forum.katalon.com/u/vivek.singla)\
**Post date:** [July 13, 2022, 8:09am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/1 "2022-07-13T08:09:10Z")

</div>

![image](https://europe1.discourse-cdn.com/katalon/original/3X/6/8/68d2cfd27b2f26b9c92e2cc5980f04a6c6369cf1.png)

Hi Team,

I’m trying to configure the email but getting the error as attached in the screenshot. Can someone please help me?

---

<div class="post-metadata">

**Author:** ![chen.lee](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@chen.lee](https://forum.katalon.com/u/chen.lee)\
**Post date:** [July 13, 2022, 8:23am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/2 "2022-07-13T08:23:39Z")

</div>

Hey Vivek @vivek.singla, thank you for asking. Maybe you can try changing the port from 35 to 587 to see if it solves your problem? You can further check the email server setup for Office [here](https://docs.katalon.com/docs/katalon-studio-enterprise/create-tests-and-projects/manage-projects/project-settings/email-settings#set-up-your-mail-server).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![vivek.singla](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vivek.singla/32/16104_2.png) [@vivek.singla](https://forum.katalon.com/u/vivek.singla)\
**Post date:** [July 13, 2022, 10:30am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/3 "2022-07-13T10:30:43Z")

</div>

Hi @chen.lee , Thanks for the response, but getting the same error with the port 587.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/f/ef485c7e4b66bcd58f8d92219e969626335955c3.png)

---

<div class="post-metadata">

**Author:** ![chen.lee](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@chen.lee](https://forum.katalon.com/u/chen.lee)\
**Post date:** [July 13, 2022, 10:37am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/4 "2022-07-13T10:37:22Z")

</div>

Hey @vivek.singla, maybe try changing your protocol from SSL to TLS to see if there is any change?

---

<div class="post-metadata">

**Author:** ![vivek.singla](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vivek.singla/32/16104_2.png) [@vivek.singla](https://forum.katalon.com/u/vivek.singla)\
**Post date:** [July 13, 2022, 11:50am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/5 "2022-07-13T11:50:53Z")

</div>

Still the same issue @chen.lee

---

<div class="post-metadata">

**Author:** ![discover.selenium](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/discover.selenium/32/522_2.png) [@discover.selenium](https://forum.katalon.com/u/discover.selenium)\
**Post date:** [July 13, 2022, 3:27pm UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/6 "2022-07-13T15:27:56Z")

</div>

My Two cents …

The below solution has worked for me.

In the Username textbox **&** Sender textbox, key in your personal **outlook id** or **hotmail id**.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/7/e7992bf4cd06c07a9693605302cb258a8907fce8.png)

[https://docs.katalon.com/docs/katalon-studio-enterprise/create-tests-and-projects/manage-projects/project-settings/email-settings](https://docs.katalon.com/docs/katalon-studio-enterprise/create-tests-and-projects/manage-projects/project-settings/email-settings)

> **[How to set up a multifunction device or application to send email using...](https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365)**
>
> Learn how to set up printers, scanners, LOB applications to send email using Microsoft 365 or Office 365.

---

<div class="post-metadata">

**Author:** ![TicTacToe](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/tictactoe/32/22830_2.png) [@TicTacToe](https://forum.katalon.com/u/TicTacToe)\
**Post date:** [December 6, 2022, 10:42am UTC](https://forum.katalon.com/t/getting-the-error-while-setting-up-email/66890/7 "2022-12-06T10:42:37Z")

</div>

I have the same issue for this one however i think this is due to that my outlook email has 2FA can someone help me on how to set it up ?
