# Email send configuration for office 365

**URL:** https://forum.mautic.org/t/email-send-configuration-for-office-365/16729
**Category:** Product Support
**Created:** [October 24, 2020, 6:49pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729 "2020-10-24T18:49:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pankajchavan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pankajchavan/32/3732_2.png) [@pankajchavan](https://forum.mautic.org/u/pankajchavan)
#### Post date: [October 24, 2020, 6:49pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/1 "2020-10-24T18:49:04Z")

</div>

**Your software**  
My Mautic version is: 3.1.1  
My PHP version is: 7.2.33

**Your problem**  
My problem is:  
I can’t config office 365 email as sending email. its shows multiple errors  
Need help to fix it.

---

<div class="post-metadata">

### Author: ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)
#### Post date: [October 24, 2020, 7:35pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/2 "2020-10-24T19:35:36Z")

</div>

I just went threw many weeks of this problem and found out that my servers database was not compatible. SO I installed 2.19.1 and then followed the set up to office 365. If you check and you have the correct php and database MySQL version is 5.7 or MariaDB 10.2. Then try input this into email other smtp:

Thank you,

Ron Gincastro

Office: 1-401-626-4603

 ![2E92A3EFF0324BA1A2A4EF49CD918081.png](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7159a975d714a6caee787759490140daf4d4fda6.png)

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [October 24, 2020, 7:46pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/3 "2020-10-24T19:46:31Z")

</div>

Howdy friend.  
I’m not aware of anyone on the forum being clairvoyant so I think we will have to wait to see the actual errors in the logs before we could help sort out the problem.  
Until then I’ll channel positive energy your way.  
Have an excellent day.

---

<div class="post-metadata">

### Author: ![pankajchavan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pankajchavan/32/3732_2.png) [@pankajchavan](https://forum.mautic.org/u/pankajchavan)
#### Post date: [October 25, 2020, 12:43pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/4 "2020-10-25T12:43:07Z")

</div>

Hey I could find error log as below, hope you can help

[2020-10-25 12:40:02] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\DBALException: “Unknown database type json requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.” at E:\Marketing Automation\apps\mautic\htdocs\vendor\doctrine\dbal\lib\Doctrine\DBAL\Platforms\AbstractPlatform.php line 436 {“exception”:"[object] (Doctrine\DBAL\DBALException(code: 0): Unknown database type json requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it. at E:\Marketing Automation\apps\mautic\htdocs\vendor\doctrine\dbal\lib\Doctrine\DBAL\Platforms\AbstractPlatform.php:436)"}

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [October 25, 2020, 1:51pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/5 "2020-10-25T13:51:39Z")

</div>

What version of mysql or mariadb are you running? @pankajchavan

> [@pankajchavan](#):
>
> mautic\htdocs\vendor\doctrine\dbal\lib\Doctrine\DBAL\Platforms\AbstractPlatform.php:436

- Gets the Doctrine type that is mapped for the given database column type.  
\*
  - @param string $dbType

  - 
  - @return string

  - 
  - @throws DBALException  
\*/  
public function getDoctrineTypeMapping($dbType)  
{  
if ($this-\>doctrineTypeMapping === null) {  
$this-\>initializeAllDoctrineTypeMappings();  
}

* * *

It seems this is an indication of having an unsupported version of MySql or MariaDb as mentioned by

> [@pcs](#):
>
> If you check and you have the correct php and database MySQL version is 5.7 or MariaDB 10.2.

---

<div class="post-metadata">

### Author: ![pankajchavan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pankajchavan/32/3732_2.png) [@pankajchavan](https://forum.mautic.org/u/pankajchavan)
#### Post date: [October 25, 2020, 5:55pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/6 "2020-10-25T17:55:49Z")

</div>

## mysqli

| MysqlI Support | enabled |
| --- | --- |
| Client API library version | mysqlnd 5.0.12-dev - 20150407 - Id: 3591daad22de08524295e1bd073aceeff11e6579 |

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [October 25, 2020, 10:25pm UTC](https://forum.mautic.org/t/email-send-configuration-for-office-365/16729/7 "2020-10-25T22:25:01Z")

</div>

> [@pankajchavan](#):
>
> mysqlnd 5.0.12-dev - 20150407

The version number 5.0.12-dev refers to the **mysqlnd** driver version, not the mysql server. They are two different things. I suspect you are running an earlier version of Mysql and it is not supported by mautic 3x  
_ **This is on a server running CENTOS 7** _

In ssh run **service mysql status**  
It will display  
Redirecting to /bin/systemctl status mysql.service  
● mysql.service - MySql 5.x.x.x database server \<–the number is your server version  
If it says **ERROR! MariaDB is running but PID file could not be found**  
You are not running mysql you are running mariadb

If you enter in ssh **service mariadb status**  
It will say:  
Redirecting to /bin/systemctl status mariadb.service  
● mariadb.service - MariaDB 10.3.25 database server \<---- Database version

If you are running Ubuntu or something else you will have to google the command to view Database server version. If your server has a panel like Plesk or Cpanel you can simply click the database server window in your panel to display version.
