# Errors while sending test email

**URL:** https://forum.mautic.org/t/errors-while-sending-test-email/20152
**Category:** Mautic 3 - Install/Upgrade Support
**Created:** [July 13, 2021, 3:12pm UTC](https://forum.mautic.org/t/errors-while-sending-test-email/20152 "2021-07-13T15:12:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)
#### Post date: [July 13, 2021, 3:12pm UTC](https://forum.mautic.org/t/errors-while-sending-test-email/20152/1 "2021-07-13T15:12:19Z")

</div>

**Your software**  
My Mautic version is: bitnami-mautic-3.3.3-5-r02  
My PHP version is: 7.3.28  
My Database type and version is: mysqlnd 5.0.12-dev

**Your problem**  
My problem is:

My instance is created on AWS EC2 and SMTP Service is from office365. I have done all the configuration on office365 and on AWS. Also get AWS approve to remove the limit on SMTP Port.

My test connection provide successful status however when trying to send test email getting the below error.

I consult with Microsoft, AWS & with Bitnami support but not able to find solution so I was asked to check on this form as your issue will be sorted out.

Please advise if you need any additional information to investigate on this issue.

**Error:**  
Expected response code 354 but got code “503”, with message "503 5.5.1 Bad sequence of commands "

These errors are showing in the log: On Mautic appilcation itself

Steps I have tried to fix the problem: None

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [July 14, 2021, 10:13am UTC](https://forum.mautic.org/t/errors-while-sending-test-email/20152/2 "2021-07-14T10:13:35Z")

</div>

Hello,  
I think you have a port issue.  
Check this cvonversation:

> **[Basic mail settings for Outlook365](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/2)**
>
> Might this be helpful?:

However this is rather an Outlook problem then Mautic. You’ll find more info in the Outlook forums I think.

Joey

---

<div class="post-metadata">

### Author: ![aayan2010](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aayan2010/32/1237_2.png) [@aayan2010](https://forum.mautic.org/u/aayan2010)
#### Post date: [July 14, 2021, 12:53pm UTC](https://forum.mautic.org/t/errors-while-sending-test-email/20152/3 "2021-07-14T12:53:39Z")

</div>

I already gone through this link and followed the same on Mautic to connect the office365 SMTP which provide successful test connection but won’t sent test email.

---

<div class="post-metadata">

### Author: ![cremigerhonig](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@cremigerhonig](https://forum.mautic.org/u/cremigerhonig)
#### Post date: [July 5, 2024, 10:12am UTC](https://forum.mautic.org/t/errors-while-sending-test-email/20152/4 "2024-07-05T10:12:13Z")

</div>

does this has anything to do with it?

# [Not sending emails - adding various CSS to mails - sending email create 503 error](https://forum.mautic.org/t/not-sending-emails-adding-various-css-to-mails-sending-email-create-503-error/32651)
