# Mautic 5.0.1 Send Test mail result 500 error

**URL:** https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433
**Category:** Product Support
**Created:** [January 10, 2024, 4:29pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433 "2024-01-10T16:29:34Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![kanaekwe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kanaekwe/32/1129_2.png) [@kanaekwe](https://forum.mautic.org/u/kanaekwe)
#### Post date: [January 10, 2024, 4:29pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/1 "2024-01-10T16:29:35Z")

</div>

**Your software**  
My Mautic version is: 5.0.1  
My PHP version is: 8.1  
My Database type and version is:

**Your problem**  
My problem is: Sending test email return 500 error

I checked the request in the browser console  
Request URL:  
[https://site.url/s/emails/sendExample/30?mauticUserLastActive=102&mauticLastNotificationId=](https://site.url/s/emails/sendExample/30?mauticUserLastActive=102&mauticLastNotificationId=)  
Request Method:  
POST  
Status Code:  
500 Internal Server Error

These errors are showing in the log: NO

Steps I have tried to fix the problem:

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 10, 2024, 4:30pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/2 "2024-01-10T16:30:34Z")

</div>

Please share the log content from your var/logs folder, or from within Mautic in your config \> logs.

Thanks!

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 10, 2024, 4:54pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/3 "2024-01-10T16:54:28Z")

</div>

Hi there,

Did you check that your Email DSN is correctly configured?

What provider were you using before, and what are you using now?

Please share your DSN settings from your Email Settings under Configuration.

---

<div class="post-metadata">

### Author: ![kanaekwe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kanaekwe/32/1129_2.png) [@kanaekwe](https://forum.mautic.org/u/kanaekwe)
#### Post date: [January 10, 2024, 6:20pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/4 "2024-01-10T18:20:05Z")

</div>

everything was working before the upgrade.

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 10, 2024, 6:23pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/5 "2024-01-10T18:23:33Z")

</div>

It probably was, but this is a **breaking change release** , being a major release.

This means that many things are **fundamentally different** , some things are removed, and you need to take actions to make sure all is good after updating.

Please read the blog post announcement:

> **[Mautic 5: Beyond Expectations, Beyond Limits](https://www.mautic.org/blog/community/mautic-5-beyond-expectations-beyond-limits)**
>
> Today we are excited to announce the release of Mautic 5.0 General Availability.

Also the release notes:

> **[Release Mautic Community 5.0.0 · mautic/mautic](https://github.com/mautic/mautic/releases/tag/5.0.0)**
>
> Mautic 5 is here!
> Today we are excited to announce the release of Mautic 5.0 General Availability.
> This release includes support for Symfony 5, PHP 8.1 and updates many of our very outdated depende...

If this is a problem for you, please roll back to your backup, and test in a development area until you’ve got your DSN settings up and running as expected.

---

<div class="post-metadata">

### Author: ![kanaekwe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kanaekwe/32/1129_2.png) [@kanaekwe](https://forum.mautic.org/u/kanaekwe)
#### Post date: [January 10, 2024, 6:56pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/7 "2024-01-10T18:56:58Z")

</div>

```auto
[2024-01-10 19:51:42] mautic.CRITICAL: Uncaught PHP Exception Error: "Object of class Mautic\EmailBundle\Mailer\Message\MauticMessage could not be converted to string" at /public_html/app/bundles/EmailBundle/Helper/MailHelper.php line 849 {"exception":"[object] (Error(code: 0): Object of class Mautic\\EmailBundle\\Mailer\\Message\\MauticMessage could not be converted to string at /public_html/app/bundles/EmailBundle/Helper/MailHelper.php:849)"} {"hostname":"myhost.site","pid":39961}

```

---

<div class="post-metadata">

### Author: ![kanaekwe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kanaekwe/32/1129_2.png) [@kanaekwe](https://forum.mautic.org/u/kanaekwe)
#### Post date: [January 11, 2024, 1:08am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/8 "2024-01-11T01:08:24Z")

</div>

> [@silavapi](#):
>
> Hi there,
> 
> Did you check that your Email DSN is correctly configured?
> 
> What provider were you using before, and what are you using now?
> 
> Please share your DSN settings from your Email Settings under Configuration.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1b9123ebf2c5a10dde89c0b18c1ebffc2e7a5c99.png)  
I used SES, I just discovered it is not configured in version 5 upgrade

---

<div class="post-metadata">

### Author: ![kanaekwe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kanaekwe/32/1129_2.png) [@kanaekwe](https://forum.mautic.org/u/kanaekwe)
#### Post date: [January 11, 2024, 7:33am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/9 "2024-01-11T07:33:03Z")

</div>

![Screenshot 2024-01-11 082038](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5c07bf9232a1059d34490fad0ed1fe2e2e67a548.png)  
I have added the DSN . The test show it work I receive the test email.

> Hi! This is a test email from Mautic. Testing…testing…1…2…3!

When I test an email I still got 500

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/06e904766979e5db2f132f79c75feff02398fc25.png)

---

<div class="post-metadata">

### Author: ![Leon\_Oltmanns](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leon_oltmanns/32/10629_2.png) [@Leon\_Oltmanns](https://forum.mautic.org/u/Leon_Oltmanns)
#### Post date: [January 11, 2024, 9:10am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/10 "2024-01-11T09:10:07Z")

</div>

Hi @kanaekwe,  
as far as im concerned Mautic 5 does not yet support Amazon SES as an ESP. The plugin for the Amazon SES support is still being worked on.

Im afraid it will take a couple days/weeks until we have the support fully covered and tested.

Best  
Leon

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [January 11, 2024, 10:17am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/11 "2024-01-11T10:17:53Z")

</div>

@Leon_Oltmanns there is no need for a special plugin if you are using SMTP, that works out of the box. With any provider. The special plugin is built for batch API.

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [January 11, 2024, 10:20am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/12 "2024-01-11T10:20:12Z")

</div>

@kanaekwe I can see this error comes from the code that is executed only if the `mailer_convert_embed_images` param is ON. There is probably a bug when sending emails wit embedded images. Try to turn this option off if it helps.

Would you mind [filing up a bug issue](https://github.com/mautic/mautic/issues/new?assignees=&labels=bug%2Cneeds-triage&projects=&template=BUG-REPORT.yml&title=Your+bug+title+goes+here%21) about this?

---

<div class="post-metadata">

### Author: ![Leon\_Oltmanns](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leon_oltmanns/32/10629_2.png) [@Leon\_Oltmanns](https://forum.mautic.org/u/Leon_Oltmanns)
#### Post date: [January 11, 2024, 10:42am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/13 "2024-01-11T10:42:19Z")

</div>

Ahh I got that mixed up,  
thanks for the correction 🙂

---

<div class="post-metadata">

### Author: ![jonathandhn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jonathandhn/32/5737_2.png) [@jonathandhn](https://forum.mautic.org/u/jonathandhn)
#### Post date: [January 11, 2024, 1:07pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/14 "2024-01-11T13:07:19Z")

</div>

Actually I’ve got 5.0.1 installed with composer, and after settings every thing then doing `composer require symfony/amazon-mailer` and then doing as the following screen works without error on php8.1. You need to change to your SES region, as eu-west-3 is Paris.

 ![Capture d’écran 2024-01-11 à 13.55.43](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a84345fc04e6ae8bdb853d08a81748b9fb5957d8.png)

What don’t work for now is both symfony mailer direct input in the local.php config file (for easy to input command (find on the internet and then copy & past), and round-robin, failover, every single advanced case, as mautic can’t send and corresponding fields are blank if the settings are changed here) and SES mail delivery notification (if it fails, your bounce would not be reported back).

---

<div class="post-metadata">

### Author: ![kanaekwe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kanaekwe/32/1129_2.png) [@kanaekwe](https://forum.mautic.org/u/kanaekwe)
#### Post date: [January 11, 2024, 1:22pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/15 "2024-01-11T13:22:04Z")

</div>

> [@escopecz](#):
>
> I can see this error comes from the code that is executed only if the `mailer_convert_embed_images` param is ON. There is probably a bug when sending emails wit embedded images. Try to turn this option off if it helps.

Thanks @escopecz I turned convert embed image OFF and email test is working. I will fill the bug

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 11, 2024, 1:25pm UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/16 "2024-01-11T13:25:29Z")

</div>

Hi there,

It is [written in the docs](https://docs.mautic.org/en/5.x/configuration/settings.html#smtp-transport) that you should not be directly editing the local.php file as you would need to encode the values which most users could not do themselves easily:

> Use the Mautic’s global configuration to paste in the DSN information, especially the API keys and passwords. **The values must be URL-encoded, and the configuration form does that for you. If you are pasting DSN settings directly into the config/local.php file, you must URL-encode the values yourself.**

Also it’s mentioned in the [blog post](https://www.mautic.org/blog/community/mautic-5-beyond-expectations-beyond-limits) and further detail on the [docs](https://docs.mautic.org/en/5.x/configuration/settings.html#email-transport-settings), that Symfony plugins do not provide bounce management / callbacks, which is why you need to use a third party Mautic plugin. The SES one has some work still needing doing - see this conversation in Slack if you can help with that: [Slack](https://mautic.slack.com/archives/C02HV76BW/p1704904423773409)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)
#### Post date: [January 13, 2024, 1:26am UTC](https://forum.mautic.org/t/mautic-5-0-1-send-test-mail-result-500-error/30433/17 "2024-01-13T01:26:26Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
