# Only sending 1 email/cron job

**URL:** <https://forum.mautic.org/t/only-sending-1-email-cron-job/2783>\
**Category:** Product Support\
**Created:** [November 16, 2015, 3:44pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783 "2015-11-16T15:44:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwrobbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jwrobbs/32/42_2.png) [@jwrobbs](https://forum.mautic.org/u/jwrobbs)\
**Post date:** [November 16, 2015, 3:44pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/1 "2015-11-16T15:44:51Z")

</div>

I wrote some emails and put them in a campaign. The 1st email is set to send as soon as triggered.  
  
  
  
I added 30 leads and then added them all to the list that is the initiator for the campaign.  
  
  
  
It seemed to take several cron cycles to start sending the emails (I wasn’t paying close attention) and now only 1 email is being sent at a time.  
  
  
  
How do I configure things so the emails are sent right away?

---

<div class="post-metadata">

**Author:** ![jwrobbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jwrobbs/32/42_2.png) [@jwrobbs](https://forum.mautic.org/u/jwrobbs)\
**Post date:** [November 16, 2015, 3:44pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/2 "2015-11-16T15:44:51Z")

</div>

I wrote some emails and put them in a campaign. The 1st email is set to send as soon as triggered.

I added 30 leads and then added them all to the list that is the initiator for the campaign.

It seemed to take several cron cycles to start sending the emails (I wasn’t paying close attention) and now only 1 email is being sent at a time.

How do I configure things so the emails are sent right away?

---

<div class="post-metadata">

**Author:** ![jwrobbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jwrobbs/32/42_2.png) [@jwrobbs](https://forum.mautic.org/u/jwrobbs)\
**Post date:** [November 16, 2015, 4:11pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/3 "2015-11-16T16:11:05Z")

</div>

Correction and update

The 1st 3 emails were sent at 5 minute intervals (in line with the cron jobs). Those are the only 3 emails that were sent. The last one was sent over 25 minutes ago. There are 27 more leads on the list that have not been emailed.

The cron job output says that the script is still running.

Do I force it to run?  
Do I kill the script? How?  
Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![jwrobbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jwrobbs/32/42_2.png) [@jwrobbs](https://forum.mautic.org/u/jwrobbs)\
**Post date:** [November 16, 2015, 4:24pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/4 "2015-11-16T16:24:04Z")

</div>

Update 2

I opted to force it and emails are being sent again… 1 per cron job.

And there’s this error in the cron job output:

[code] [DoctrineORMORMInvalidArgumentException]  
A new entity was found through the relationship ‘MauticPointBundleEntityLeadPointLog#lead’ that was not configured to cascade persist operations for entity: MauticLeadBundleEntityLead with ID #11. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={“persist”}).

mautic:campaigns:trigger [-i|–campaign-id[="…"]] [–scheduled-only] [–negative-only] [-l|–batch-limit[="…"]] [-m|–max-events[="…"]] [-f|–force][/code]

---

<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:** [November 18, 2015, 12:53pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/5 "2015-11-18T12:53:04Z")

</div>

This is a know bug. The fix is here:  
[https://github.com/mautic/mautic/pull/1100](https://github.com/mautic/mautic/pull/1100)  
and will be available in the next release of Mautic (1.2.3)

---

<div class="post-metadata">

**Author:** ![jwrobbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jwrobbs/32/42_2.png) [@jwrobbs](https://forum.mautic.org/u/jwrobbs)\
**Post date:** [November 18, 2015, 1:38pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/6 "2015-11-18T13:38:58Z")

</div>

I’m not happy there’s a bug. But I am happy that it isn’t me. Thanks!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/only-sending-1-email-cron-job/2783/7 "2020-02-02T22:57:04Z")

</div>


