Email Campaign not sent

Hello,

I installed SuiteCRM 8.9.1 in a Docker container on a Linux VM. Everything seems to be working fine. After some troubleshooting, I also managed to get the schedulers running. Most of them show entries for their last executed tasks (mail notifications, workflows, etc.).

Now I’m trying to get email campaigns working. I created a new campaign, added a marketing email, and created a target list containing one contact and one target. I set a scheduled run date, added some email content, and clicked “Schedule”.

However, nothing happens. There are no entries in the mail queue or sending jobs, and no fatal errors appear in the logs.

General email sending works (for example, test emails are sent successfully).

What could be causing this issue, and how can I fix it?

Thanks in advance,

Dennis

Check in the scheduler and ensure the job: “Run Nightly Mass Emails” has run. This is what actually creates the emails and put them in the queue.

Also, server time vs. suitecrm timezone can be an issue. Because it runs in the background it runs on server time. It can be out of sync when you expect it to run and send.

cron - having trouble running cronjobs for SuiteCRM in Docker container alpine - Stack Overflow

Thanks for your reply. I think different time zone might be a reason. the mentioned queue is empty.

guess this will not help due to fact its Debian GNU/Linux 12 - but thank you

Hello Dennis,

the status of your campaign is set to “active”?

Just to be sure, you can set your scheduled run date to e.g. yesterday.

I’ve noticed that your system contains German. How do you DOI settings look like (under Admin - Email Settings)?

What SMTP are you using? Standard shared hoster SMTP or sth. like Gmail / Outlook?

Thanks for your answer - Opt In Settings are the same as on your screenshot.

Campaign is set to active

and SMTP is Microsoft O365

Also tried Gmail - no change. still no entries in Queues :frowning:

I’ve seen sth. similar recently in one project.

If you go to:

  1. Outbound emails
  2. Setup your outgoing details / credentials
  3. Send test mail then it works, right?
    then:
  4. Save it
  5. Click on edit again
  6. Send test email again. Does it work then?

This can be one reason for campaigns failing to send (similar to: SMTP credentials wrong after changing a field in outbound email settings · Issue #10763 · SuiteCRM/SuiteCRM · GitHub )

If that doesn’t help, do you have access to your DB?
How does the table email_marketing look like? Specifically the status and queueing_status columns?

There have been a few bugs around 8.9.1 - an upgrade might be good.
And for the schedulers, this one is running: Queue Campaign Emails?

Was this already an upgraded system?

Here the excerpt from the database.

sending a test mail, editing the outbound credentials and sending another one works flawlessly.

i upgraded the docker instance from 8.9.0 to 8.9.1 - this was really painful. from that I hope it just works without upgrades :smiley:

When you search for “not_started” in the repo:

It seems like, your scheduler just doesn’t start.
Maybe there have been some issues with the upgrade or similar.
This one:

got fixed with the 8.9.2 upgrade.

I know, Docker and SuiteCRM don’t really work well together.
But not being able to upgrade due to a “wrong” system is a no go.
What if there are security patches available?

I’d first work on the upgrade and then investigate the scheduler.

One small thing that you can do in advance (probably difficult in docker as well:
Run the scheduler via CLI manually to check the output.

bin/console schedulers:run

tried to upgrade but got stuck with redirects or whatever - login-loop. but my testmails where sent while upgrading or setting the permissions :smiley: - to put it in a nutshell: I just lost 6hours of my life and rolled back to 8.9.1 because of the loop.

@Dennis123 Don’t get me wrong I love SuiteCRM but for email campaigns, Mautic is the way to go.

thanks for the hint but is there a connection between suitecrm and Mautic?

There is a Mautic plugin, which only synchronizes contacts / companies.
It works more or less ok but it’s not under active development.

Because of that, I often implement integrations via the APIs between Mautic and SuiteCRM.
However, this approach requires custom development in every project.
See my videos about the approach here:

https://www.youtube.com/playlist?list=PLsFGHEmMr2qf-H1COXZ2P2r_Bdg2BxYKY
https://www.youtube.com/playlist?list=PLsFGHEmMr2qcWFFZee6wDi3ydaM0zXLQn

I’m currently building a dedicated integration that synchronizes much more, including:

  • contacts & accounts
  • campaigns
  • segments
  • marketing activity
  • lead scoring

If you’re interested, I’m collecting early users here:

Apart from that, you should still look into your CRM upgrade.
One hint: I usually export DB + files from docker, do the upgrade on a “real” LAMP system and create a new, custom Docker with the new version.

1 Like