[Bug]: Encryption app. Emails not sent when files encrypted with per-user keys due to error in apps/encryption/templates/mail.php #35808
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
25-feedback
bug
feature: emails
feature: encryption (server-side)
Bug description
Using the encryption app, when setting up per-user keys, Nextcloud fails to send emails to all users when the occ
php occ encryption:encrypt-all
command is issued, with the fileapps/encryption/templates/mail.php
generating an error on line 10 as the php command there cannot find the imagelogo-mail.png
.The file does exist at
core/img/logo/logo-mail.png
.The error produced is
If
mail.php
is edited to remove the php and add the full web address oflogo-mail.php
e.g.:<img src="https://nextcloud.example.com/core/img/logo/logo-mail.png" alt="<?php p($theme->getName()); ?>"/>
then the
mail.php
file executes without error and emails are correctly sent to all users.Steps to reproduce
I'm using a set of docker containers with the nextcloud version nextcloud:25.0.2-fpm-alpine.
I appear to have no other issues with missing images in the web interface.
Expected behavior
Emails derived from the template
apps/encryption/templates/mail.php
should be sent to all users, containing their auto-generated private key password and instructions on how to change it to their current login password in the nextcloud web interface.Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: