# Using Office365 as SMTP

**URL:** https://www.finalbuilder.com/forums/t/using-office365-as-smtp/5591
**Category:** Discussion
**Created:** [October 25, 2017, 7:49am UTC](https://www.finalbuilder.com/forums/t/using-office365-as-smtp/5591 "2017-10-25T07:49:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [October 25, 2017, 7:49am UTC](https://www.finalbuilder.com/forums/t/using-office365-as-smtp/5591/1 "2017-10-25T07:49:24Z")

</div>

Steps I’ve done:  
  
1. Create an app password in office 365  
2. Use&nbsp;[smtp.office365.com](http://smtp.office365.com)  
3. Use 587 as port  
4. Secure sockets mode: Start TLS when available (but basically I tried all)  
  
I always get an error. When using automatic, this is the error:  
  
An error occurred while sending a test email. Please check your email settings. Details: Failed to login to SMTP client to deliver email message to [removed email address] Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond… Inner exception is: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Reply from SMTP service was '220 [AM6PR0202CA0014.outlook.office365.com](http://AM6PR0202CA0014.outlook.office365.com) Microsoft ESMTP MAIL Service ready at Wed, 25 Oct 2017 19:44:33 +0000 EHLO [192.168.1.83] [250-AM6PR0202CA0014.outlook.office365.com](http://250-AM6PR0202CA0014.outlook.office365.com) Hello [95.96.43.156] 250-SIZE 157286400 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 SMTPUTF8 STARTTLS 220 2.0.0 SMTP server ready EHLO [192.168.1.83] [250-AM6PR0202CA0014.outlook.office365.com](http://250-AM6PR0202CA0014.outlook.office365.com) Hello [95.96.43.156] 250-SIZE 157286400 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH LOGIN XOAUTH2 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 SMTPUTF8 AUTH XOAUTH2 [removed for security] 451 4.7.0 Temporary server error. Please try again later. PRX4 [[AM6PR0202CA0014.eurprd02.prod.outlook.com](http://AM6PR0202CA0014.eurprd02.prod.outlook.com)] AUTH LOGIN 334 [removed for security] [removed for security] 334 [removed for security] [removed for security]== '  
  
I can use the same settings on other systems (such as Octopus Deploy).&nbsp;

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [October 26, 2017, 5:57am UTC](https://www.finalbuilder.com/forums/t/using-office365-as-smtp/5591/2 "2017-10-26T05:57:42Z")

</div>

Hi Geert,  
  
We haven’t be able to reproduce this error, but have implemented a change to our code based on other reports found while researching this issue. We got a few other changes to test, but plan to&nbsp;get a new version out in the next couple of days.  
&nbsp;

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [October 30, 2017, 8:10am UTC](https://www.finalbuilder.com/forums/t/using-office365-as-smtp/5591/3 "2017-10-30T08:10:33Z")

</div>

Hi Geert,  
  
Please try v[ersion](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8.1)[&nbsp;1.8.1.655](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8.1) using Start TLS for the secure sockets mode and let us know if you still have any issues authenticating with&nbsp;Office365 SMTP

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [October 30, 2017, 11:11am UTC](https://www.finalbuilder.com/forums/t/using-office365-as-smtp/5591/4 "2017-10-30T11:11:29Z")

</div>

Works like a charm, thanks!
