# Campaign emails don't get scheduled

**URL:** <https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [July 19, 2023, 12:19pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648 "2023-07-19T12:19:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 19, 2023, 12:19pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/1 "2023-07-19T12:19:33Z")

</div>

My Mautic version is: v4.4.9  
My PHP version is: PHP 7.4.33 (cli) (built: Nov 15 2022 06:03:30) ( NTS )  
My Database type and version is: Server version: 5.7.42-46 Percona Server (GPL), Release 46, Revision e1995a8bb71

My problem is:

I created an onboarding campaign that is to be sent to subscribers in a particular segment (`new commers`).

Upon subscription, contacts are added to this segment and an email is supposed to be sent to them right away:

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

I did a couple of tests and the new users get in the database and belong to the right segment but still, the emails aren’t sent and, as far as I can see in the campaign dashboard, the don’t get scheduled either:

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

If I check the contacts for the campaign I see them correctly:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/83714ff70907c67a9ba294d37256d8021a3b5cf1.png)

I don’t see any log, though the problem doesn’t seem to be technical but rather something I’m not quite understanding how to do (I’m new to Mautic).

Steps I have tried to fix the problem:

I checked the availability of cronjobs. The cron service was not working, it is now.

I run every command found in the file `/etc/cron.d/mautic` manually and they all work fine.

What am I missing?

Thanks

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 19, 2023, 1:05pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/2 "2023-07-19T13:05:16Z")

</div>

when you open a contact do you see anything in their history?

Are the emails published.

It looks like the campaign is being updated, but not triggered.

are you running php /var/www/mautic/bin/console mautic:campaigns:update

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 19, 2023, 1:10pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/3 "2023-07-19T13:10:45Z")

</div>

I just noticed there is actually some notification in the dashboard:

`Failed to execute campaign event for xxx@xxxx.com`

I’m checking the logs in the Mautic dashboard as well but don’t see anything particularly relevant.

In the contacts details there seems to be something, though the message is not very explicit:

“This event encountered an error during the last attempt to process”

I’ll try what you suggest. Thanks!

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 19, 2023, 1:34pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/4 "2023-07-19T13:34:00Z")

</div>

> [@mikew](#):
>
> php /var/www/mautic/bin/console mautic:campaigns:update

The output of the command was:

```auto
Rebuilding contacts for campaign 2
0 total contact(s) to be added in batches of 300
0 total contact(s) to be removed in batches of 300

```

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 19, 2023, 1:35pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/5 "2023-07-19T13:35:33Z")

</div>

I think the problem might be related to my SMTP provider. Apparently as I just signed up they won’t let me send emails to people outside of my own domain… that would explain the results of some previous tests… I never noticed emails arrived when sent to my own address but not to other domains…

Hopefully it’ll all be sorted out by tomorrow.

Thanks!

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 19, 2023, 2:43pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/6 "2023-07-19T14:43:32Z")

</div>

Yeap, confirmed, I finally got a more detailed error:

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

My provider ([mailersend.com](http://mailersend.com)) has confirmed my account so now things should work fine… we’ll see 🙂 😅

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 19, 2023, 2:52pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/7 "2023-07-19T14:52:31Z")

</div>

Yes! My campaign is running! Thank you all 😀

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 19, 2023, 2:58pm UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/8 "2023-07-19T14:58:56Z")

</div>

I had an error here, it should have read mautic:campaigns:trigger

---

<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:** [July 21, 2023, 2:59am UTC](https://forum.mautic.org/t/campaign-emails-dont-get-scheduled/28648/9 "2023-07-21T02:59:19Z")

</div>

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