Update emails not working

Created on 22 June 2023, over 1 year ago
Updated 5 July 2023, over 1 year ago

When I updated Swift Mailer to a new version, it overrides updated manager emails and sets it to dummy. The problem is I stopped receiving emails about updates and get this error:

Warning: foreach() argument must be of type array|object, string given in _update_cron_notify() (line 37 of /core/modules/update/update.fetch.inc)

To be sure I installed SMTP transport plugin and mails are sent for other modules and I added Update Manager policy with Body, Subject, To fields.

As I understand Symphony Mailer overrides notification email to dummy to force update module to send mails but when update module tries to do that it expects array ['dummy'] but not string 'dummy'. When I change it inside of update.fetch.inc, emails are sent correctly.

I don't know how to solve it since UpdateEmailBuilder.php overrides email notification settings to string 'dummy' and doesn't provide to set it to array.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine lobodacyril

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024