duplicate email

Hello guys

I have a problem. I’m using Mautic for my campaigns and whenever a new contact enters a campaign through a form, the first email sent to it is going to be duplicated.

I checked the cron jobs and my smtp server is all ok. What can it be?

Thank you very much, but you do not have to. I already found a way.

My first intention would be that the cron jobs run simultaneously. But it seems you have solved your problem already. Would you mind posting the resolution here? It might be useful for other forum members.

The problem was really the cron jobs. They were starting two tasks at the same time. I set up a format that works each in a different minute.

I found this template on the internet and it worked:

1,5,9,13,18,22,26,31,35,39,43,48,52,56 * * * * php /var/www/seumautic.com/htdocs/app/console mautic:segments:update --force --batch-limit=300

2,6,10,14,19,23,27,32,36,40,44,49,53,57 * * * * php /var/www/seumautic.com/htdocs/app/console mautic:campaigns:rebuild --force --batch-limit=300

3,7,11,16,20,24,28,33,37,41,46,50,54,58 * * * * php /var/www/seumautic.com/htdocs/app/console mautic:campaigns:trigger --force --batch-limit=100

4,8,12,17,21,25,29,34,38,42,47,51,55,59 * * * * php /var/www/seumautic.com/htdocs/app/console mautic:emails:send

I hope it helps. thanks