# Issue with cron job: mautic:emails:send

**URL:** https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961
**Category:** Mautic 4 Install/Upgrade Support
**Created:** [May 9, 2023, 5:55pm UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961 "2023-05-09T17:55:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![edwin.muniu](https://avatars.discourse-cdn.com/v4/letter/e/b9e5f3/32.png) [@edwin.muniu](https://forum.mautic.org/u/edwin.muniu)
#### Post date: [May 9, 2023, 5:55pm UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961/1 "2023-05-09T17:55:30Z")

</div>

php 8.0  
mautic 4.4.8

error I get when I run mautic:emails:send

[root@vps ~]# /usr/local/bin/php /home/tsquare/public\_html/mautic/bin/console mautic:emails:send

In bootstrap80.php line 21:

mb\_encode\_mimeheader(): Return value must be of type string, null returned

---

<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: [May 9, 2023, 7:05pm UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961/2 "2023-05-09T19:05:08Z")

</div>

Hi, do you have the php mb extension, right?

---

<div class="post-metadata">

### Author: ![edwin.muniu](https://avatars.discourse-cdn.com/v4/letter/e/b9e5f3/32.png) [@edwin.muniu](https://forum.mautic.org/u/edwin.muniu)
#### Post date: [May 10, 2023, 11:14pm UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961/3 "2023-05-10T23:14:42Z")

</div>

I confirm that php mbstring is not installed. Is it mandatory?

As we try to install it has many conflicts with imunify360-ea-php-hardened repo: [https://hw-screenshots.sea-proxy.windystorage.com/screenshots/2023-05-10\_04-45-52x4y7vx4o-6jac-4mpa-b7cz-x421kc99fjvk.png](https://hw-screenshots.sea-proxy.windystorage.com/screenshots/2023-05-10_04-45-52x4y7vx4o-6jac-4mpa-b7cz-x421kc99fjvk.png)

---

<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: [May 11, 2023, 6:42am UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961/4 "2023-05-11T06:42:53Z")

</div>

As we always wait for super-stable release for production, we use mostly php 7.4. I can confirm, that mbstring is installed. On the few php8.0 installs I have I also have mbstring. No problems.

---

<div class="post-metadata">

### Author: ![edwin.muniu](https://avatars.discourse-cdn.com/v4/letter/e/b9e5f3/32.png) [@edwin.muniu](https://forum.mautic.org/u/edwin.muniu)
#### Post date: [May 11, 2023, 7:27am UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961/5 "2023-05-11T07:27:58Z")

</div>

I have now successfully installed the mbstring for PHP8.0 through Easy Apache4 interface in WHM. Please refer the screenshot for the confirmation:

 ![](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e91cb965cd461d042a58ee48075695f9e2abbdb5.png)  
mautic:emails:send is now working.

Thanks for your help!!! and all videos.  
Thanks all for a great community

---

<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: [May 12, 2023, 7:28pm UTC](https://forum.mautic.org/t/issue-with-cron-job-mauticsend/27961/6 "2023-05-12T19:28:20Z")

</div>

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