# I can send test email buy not Campaings and emails

**URL:** <https://forum.mautic.org/t/i-can-send-test-email-buy-not-campaings-and-emails/33636>\
**Category:** Product Support\
**Created:** [September 27, 2024, 5:22pm UTC](https://forum.mautic.org/t/i-can-send-test-email-buy-not-campaings-and-emails/33636 "2024-09-27T17:22:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrwawe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrwawe/32/12256_2.png) [@mrwawe](https://forum.mautic.org/u/mrwawe)\
**Post date:** [September 27, 2024, 5:22pm UTC](https://forum.mautic.org/t/i-can-send-test-email-buy-not-campaings-and-emails/33636/1 "2024-09-27T17:22:56Z")

</div>

**Your software**  
My Mautic version is: v5.1.1  
My PHP version is: PHP Version 8.2.22  
My Database type and version is: 10.11.9-MariaDB-ubu2204  
Server API: LiteSpeed V8.1  
**Your problem**  
My problem is:  
I can resive test emails and email like Mautic.campaign.event.campaign\_unpublished.title  
Buy i can’t send emails or campings

These errors are showing in the log:  
/home/mail.nouari.top/public\_html/var/logs/prod-2024-09-27.php

```auto
[2024-09-27T17:04:15.865404+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}
[2024-09-27T17:04:15.893037+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}
[2024-09-27T17:04:15.931631+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}
[2024-09-27T17:04:15.967438+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}
[2024-09-27T17:04:15.999172+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}
[2024-09-27T17:04:16.036740+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}
[2024-09-27T17:04:16.059349+00:00] app.ERROR: [MAIL ERROR] Expected response code "250" but got code "530", with message "530 From/Sender name is not valid". [] {"hostname":"vmi2169423.contaboserver.net","pid":116472}

```

My crontab -l

```auto
0 * * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/findBWUsage.py >/dev/null 2>&1
0 * * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/postfixSenderPolicy/client.py hourlyCleanup >/dev/null 2>&1
0 0 1 * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/postfixSenderPolicy/client.py monthlyCleanup >/dev/null 2>&1
0 2 * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/upgradeCritical.py >/dev/null 2>&1
0 0 * * 4 /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/renew.py >/dev/null 2>&1
7 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
0 0 * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py Daily
0 0 * * 0 /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py Weekly

*/30 * * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '30 Minutes'
0 * * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '1 Hour'
0 */6 * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '6 Hours'
0 */12 * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '12 Hours'
0 1 * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '1 Day'
0 0 */3 * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '3 Days'
0 0 * * 0 /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '1 Week'

*/3 * * * * if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi
09,39 * * * * /usr/local/CyberCP/bin/cleansessions >/dev/null 2>&1

0 0 * * 0 sh /root/logscleaner.sh

0 0 * * * find /usr/local/lsws/logs/ -name ‘*log.*’ -delete

# Mautic Cron Jobs

# Update Campaigns (Processes campaign triggers)
0,15,30,45 * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:campaigns:update

# Trigger Campaign Timed Events
5,20,35,50 * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:campaigns:trigger

# Send Broadcast Messages
0,15,30,45 * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:broadcasts:send

# Send Messages Queue
*/5 * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:messages:send

# Update Segments
0,15,30,45 * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:segments:update

# Fetch Monitored Emails
* * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:email:fetch

# Social Monitoring (if used)
* * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:social:monitoring

# Import Contacts (if used)
* * * * * /usr/bin/php /home/mail.nouari.top/public_html/bin/console mautic:import

```

## Current Error Log

```auto
Today's Mautic error log is empty. Check server error log for error messages Mautic didn't have a chance to catch.

```

If i tray to send email i have this message:

#### “Opportunity to Acquire [AlabamaTrees.com](http://AlabamaTrees.com)” was sent but with some failures.

 ![Screenshot_27-9-2024_181958_mail.nouari.top](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/156d456cd6c86fa9adaefad4700f3e2299f79399.jpeg)

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![mrwawe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrwawe/32/12256_2.png) [@mrwawe](https://forum.mautic.org/u/mrwawe)\
**Post date:** [September 29, 2024, 3:23pm UTC](https://forum.mautic.org/t/i-can-send-test-email-buy-not-campaings-and-emails/33636/2 "2024-09-29T15:23:44Z")

</div>

### **How These Commands Resolved the Issue:**

- **Root Cause of the Issue:**
  - The `ckeditor.js` file was missing because the frontend assets hadn’t been properly installed and generated.
  - This was due to either not running the necessary build steps after installing Mautic or after an update.

- **Resolution Steps:**
  - **Installed Dependencies:**
    - `npm install` brought in all necessary frontend packages.

  - **Updated Packages:**
    - `npm audit fix --force` updated the packages to versions compatible with your Node.js and npm environment.

  - **Generated Assets:**
    - `php bin/console mautic:assets:generate` compiled these packages and generated the required assets, including `ckeditor.js`.

- **Result:**
  - Mautic could now find and load the `ckeditor.js` file, allowing the email editor to function correctly.
