System Information
Mautic version: 3.2.0
PHP version: 7.2
Problem
I have few campaign created to send notification emails to user at scheduled time only. According to Mautic’s campaign execution behaviour It should send notification when the scheduled time is arrived and do not consider it in next cron for campaign trigger.
But It send email notification to those users each time when campaign trigger command is executed.
When this happens it’ usually due to some filter criteria staying true and refiring the action.
Unless it’s necessary, make sure you have set campaigns to not allow contacts to restart the campaign.
Mark emails as marketing emails in the campaign builder email module. That will mean they can only be sent once, even if triggered to be sent multiple times.
But both these actions steps won’t solve the core reason for the emails being sent multiple times.
Can you share
The campaign structure screen shot
The filter criteria for the segment that is feeding the campaign.
I have figured out and came to know that, There was some error which was breaking the execution of campaign:trigger command before it sets the “is_scheduled” to 0. So every time when cron re-tries, it keep considering those contacts again and again.
So In this case emails were sending to same contact multiple time. I think it would have been better if is_scheduled is handled and updated as soon as the email is sent successfully.
System logs by Mautic are helpful for tracking background executions.