E-Mailing not working with 29.0.4

Nextcloud version 29.0.4
Operating system and version RHEL 9.4
Apache 2.4.57-11.el9_4.1
PHP version 8.2

After updating to Nextcloud 29.0.4 I cannot send E-Mails. When using the “Test an verify email settings” Button I see this in php-fpm/www-error.log

php-fpm/www-error.log

PHP Fatal error:  Type of OC\Mail\CustomMail::$header must be string (as in class OC\Mail\EMailTemplate) in /var/www/html/nextcloud/lib/private/Mail/CustomMail.php on line 7

Does anyone know, what is going wrong at this point?

Thanks for your help and best regards

Do you have an integrity check message under Admin settings->Overview?

I ask because that file doesn’t exist in Nextcloud.

Based on the output I infer you may be using a locally developed email template, but it’s unclear how you deployed it. See here:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html#modifying-the-look-of-emails-beyond-the-theming-app-capabilities

What version of Nextcloud did you upgrade from?

Thanks for your hint, there was a custom mail template and I needed to change

protected $header = <<<EOF
to
protected string $header = <<<EOF

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.