# Sending example email results in 500 error

**URL:** <https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641>\
**Category:** Product Support\
**Created:** [April 11, 2024, 7:54pm UTC](https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641 "2024-04-11T19:54:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakobpersson](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jakobpersson](https://forum.mautic.org/u/jakobpersson)\
**Post date:** [April 11, 2024, 7:54pm UTC](https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641/1 "2024-04-11T19:54:14Z")

</div>

**Your software**  
My Mautic version is: 5.0.4  
My PHP version is: 8.1.27  
My Database type and version is: 10.6.16-MariaDB-0ubuntu0.22.04.1

**Your problem**  
My problem is:  
Sending an example email results in 500 internal server error.

These errors are showing in the log:  
None. I can’t see the error. I’ve set PHP to log to /var/log/php\_error.log but to no avail.

Steps I have tried to fix the problem:  
Checked out similar problem reported here. They don’t seem to apply.

---

<div class="post-metadata">

**Author:** ![jakobpersson](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jakobpersson](https://forum.mautic.org/u/jakobpersson)\
**Post date:** [April 12, 2024, 7:27am UTC](https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641/2 "2024-04-12T07:27:27Z")

</div>

I finally managed to load the configuration page and the email DSN settings were gone. No wonder Mautic could not send email. But giving a 500 error without any log details is hardly useful or helpful…

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 13, 2024, 8:41am UTC](https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641/3 "2024-04-13T08:41:42Z")

</div>

True, but Error 500 happens on the server before Mautic has a chance to kick in. Error 500 is a general web server error and always needs some investigation and research. Nothing much Mautic can do about it.

---

<div class="post-metadata">

**Author:** ![jakobpersson](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jakobpersson](https://forum.mautic.org/u/jakobpersson)\
**Post date:** [April 14, 2024, 4:13pm UTC](https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641/4 "2024-04-14T16:13:17Z")

</div>

Nothing was reported in the error logs (Apache2 and PHP). Very bizarre…

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [April 15, 2024, 9:10am UTC](https://forum.mautic.org/t/sending-example-email-results-in-500-error/31641/5 "2024-04-15T09:10:35Z")

</div>

Check your other Apache logs. Error 500 are usually reported. But not necessarily where you think that they should be reported.

Anyways, Mautic is only a glorified PHP app. You may replace “Mautic” with “WordPress” and server side, will basically be the same (only require a LAMP stack).

With that said, my usual webapp checklist:  
File/dir ownership (should all and only belong to the user running Apache (www-data in default Ubuntu))  
File permissions (Files: 644 Directories: 755)  
Resource allocation (enough RAM, storage and inodes ?)

If all fail, I’ll check my Apache configuration.

\*\* I bet your problem is either file ownership or ram allocation. Bump your PHP ram allocation to 1024MB or 2048MB)
