Emails Failing to Send from Workflows following upgrade to 8.10/8.10.1

I have workflows that automatically send emails that work fine in version 8.9.3 but when I upgrade to 8.10/8.10.1 emails fail to send from workflows. I can send emails direct from the UI but emails configured to send from a workflow fail to send and the workflow status shows “running” If I remove the send email function from the workflow the workflow completes all other functionality ok.

Anyone have any ideas why/how to fix?

You have to follow the instructions for these latest versions. They use Symfony Messenger component for scheduled emails.

I have done Messenger Setup - and run from command line and checked it is working by running the migration tasks successfully. Emails are still not sent from workflows.

Also trying to run messenger as Cron Job - i doesn’t start - have attached a copy of the Cron Log

adrian.zip (2.8 KB)

You seem to be running your cron job from a web server instead of CLI, how exactly did you set up the job?

Warning: The console should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI

I used the con job setup from CPANEL

Have you set correct file permissions, once you upgraded to v8.10.1?

Can you see the command that CPanel creates? You might want to ask your hosting about this.

The messenger worker needs to run in the background continuously, if they divert console jobs to web server calls, they might not allow this, I don’t know.

@ahicks

Have you resolved the issue? I am encountering the same problem.

In the scheduler, “Run Email Reminder Notifications” is running every min, but “Process Workflow Tasks” result state is “queued“,

The new cron job was already added and run successfully in our shared Linux server

No, I reverted back to 8.9 in production.

Are workflows running, or just not the email part?

Workflows run ok unless there is a send email action in which case they just hang running and never complete

Have you tested your system outbound email does that work?

Ok - Have now installed a new clean version of 8.10.1 running on Debian with php version 8.3

Test email sends from admin email outbound email accounts

Emails send from standalone compose email ok

Campaign Emails are sent ok via messenger

Workflows with an email send action produce a save record error and workflow is stuck running and email is not sent.

Any ideas as to where to find the problem and correct?

Adrian

Please check the logs right after triggering the workflow.

Also check the Messenger worker output while it is running:

php bin/console messenger:consume async -vv

Also confirm the workflow email template has valid recipients and no missing related-record fields.

Who are the allowed cron users? On cpanel you have to add your account name. (the part you blurred out) in your config file.

Have you looked at this pull request, I think it’s likely related to this issue and potentially the cause

https://github.com/SuiteCRM/SuiteCRM-Core/pull/974

Daman, you are right - adding the missing parameter as set out in 974 fixes the issue workflow emails now send :slight_smile: