# No Emails Sending after update to 5.1

**URL:** <https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386>\
**Category:** Product Support\
**Created:** [September 5, 2024, 9:24am UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386 "2024-09-05T09:24:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanmcrobs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alanmcrobs/32/12643_2.png) [@alanmcrobs](https://forum.mautic.org/u/alanmcrobs)\
**Post date:** [September 5, 2024, 9:24am UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386/1 "2024-09-05T09:24:56Z")

</div>

**Your software**  
My Mautic version is: 5.1.0  
My PHP version is: 8.1.29  
My Database type and version is: 10.11.6-MariaDB-0+deb12u1

**Your problem**  
My problem is:

These errors are showing in the log:

```auto
[2024-09-04T06:05:41.339166+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:155859}
[2024-09-04T06:18:26.424101+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T06:20:57.208297+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:155859}
[2024-09-04T08:30:50.249029+00:00] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 116 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.056085+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.131083+00:00] mautic.WARNING: PHP Warning - file_get_contents(): php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.131404+00:00] mautic.WARNING: PHP Warning - file_get_contents(https://www.mailjet.com/images/theme/v1/icons/ico-social/instagram.png): Failed to open stream: php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.133337+00:00] mautic.WARNING: PHP Warning - file_get_contents(): php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.133509+00:00] mautic.WARNING: PHP Warning - file_get_contents(https://www.mailjet.com/images/theme/v1/icons/ico-social/web.png): Failed to open stream: php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:33:16.284602+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155859}
[2024-09-04T09:01:46.541669+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T09:06:33.764944+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:170534}
[2024-09-04T09:06:40.672015+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:170440}
[2024-09-04T09:07:12.674394+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T09:07:14.426986+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T09:07:14.468121+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T11:50:26.232251+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:170440}
[2024-09-04T11:55:14.782224+00:00] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 116 {“hostname”:“johnboy”,“pid”:170534}
[2024-09-04T12:15:05.663623+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:170440}
[2024-09-04T14:10:26.218960+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/da57889896a0f96a1ac3cc3f24f514f01b1edd62.png): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:173919}
[2024-09-04T14:34:11.346336+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:170534}

```

Steps I have tried to fix the problem:

Re Entered all Email Credentals  
Upgraded to 5.1  
Checked Folder Permissions  
Tried sending a blank email with no effect

Any suggestions?

---

<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:** [September 5, 2024, 2:23pm UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386/2 "2024-09-05T14:23:29Z")

</div>

> [@alanmcrobs](#):
>
> `MailHelper.php - at line 827`

This line suggests there is some issue with embedding the images inside the email. I tested embedded images in Mautic 5.1 in [Tests for embedded images when sending emails by escopecz · Pull Request #13449 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/13449) and it was working. Can you check that the file `/var/www/html/asset/21:escapelogologo-300pxpng1` exists on your server?

Please also describe what ESP you use to send emails. Can you send a test email?

---

<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:** [September 5, 2024, 2:24pm UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386/3 "2024-09-05T14:24:22Z")

</div>

There are also some issues reported if there is some special character in the email DSN. Check if it’s not your case:

> **[Issues · mautic/mautic](https://github.com/mautic/mautic/issues?q=is%3Aissue%2Bis%3Aopen%2Bdsn)**
>
> Mautic: Open Source Marketing Automation Software. - Issues · mautic/mautic

---

<div class="post-metadata">

**Author:** ![alanmcrobs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alanmcrobs/32/12643_2.png) [@alanmcrobs](https://forum.mautic.org/u/alanmcrobs)\
**Post date:** [September 5, 2024, 2:30pm UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386/4 "2024-09-05T14:30:11Z")

</div>

yes its present and also loadable if i go to the link directly  
[https://mautic.oez.escpe.net/asset/21:escapelogologo-300pxpng1](https://mautic.oez.escpe.net/asset/21:escapelogologo-300pxpng1)

---

<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:** [September 6, 2024, 7:21am UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386/5 "2024-09-06T07:21:51Z")

</div>

As discussed in the [Slack thread](https://mautic.slack.com/archives/C02GEN0SG/p1725545506924439) this issue may be caused by the worker not running. Try running `bin/console messenger:consume email` and see what the output is.

---

<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:** [September 11, 2024, 11:33am UTC](https://forum.mautic.org/t/no-emails-sending-after-update-to-5-1/33386/6 "2024-09-11T11:33:30Z")

</div>

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