Skip to content

feat(mail): use the new email template blocks for guest invitations - #1720

Merged
skjnldsv merged 5 commits into
mainfrom
feature/mail-template-blocks
Oct 14, 2026
Merged

skjnldsv merged 5 commits into
mainfrom
feature/mail-template-blocks

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Server 36 added blocks to the email template API (nextcloud/server#65193 and follow-ups). This switches both guest invitation mails to them: the inviter is shown as the sender, the share note is now included, the file name, expiry and login go in a details card, and the mail gets the recipient's language direction.

The new methods are @since 36.0.0, so this raises min-version to 36. Depends on #1719, and on cutting stable-4.10 from main first so 32 to 35 keep getting fixes.

The share subject now names the file ("Alice shared Budget.xlsx with you") like sharebymail does. The share note was never sent before; I have not checked whether it can already be set when ShareCreatedListener fires.

Before After
Dark Narrow

Unit tests cover both mails, the share mail without note or expiry, and RTL. Rendered on server master, not sent through a real SMTP server.

馃懢 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

klaussalminenq5 and others added 4 commits October 11, 2026 19:05
   Use IMessage::useTemplate() so inline images from EMailTemplate
   (the cid:logo theming logo since Nextcloud 34) are attached.

   Signed-off-by:Klaus Salminen klaus@andqfive.com

Signed-off-by: klaussalminenq5 <klaus@andqfive.com>
Signed-off-by: klaussalminenq5 <klaus@andqfive.com>
useTemplate() overwrites the message subject with the template one.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvo忙 <14975046+skjnldsv@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvo忙 <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv self-assigned this Oct 11, 2026
@skjnldsv skjnldsv added 2. developing Work in progress enhancement New feature or request labels Oct 11, 2026
Comment thread appinfo/info.xml
<screenshot>https://raw.githubusercontent.com/nextcloud/guests/master/screenshots/dropdown.png</screenshot>
<dependencies>
<nextcloud min-version="32" max-version="36" />
<nextcloud min-version="36" max-version="36" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should branch off before merging this

@skjnldsv
skjnldsv marked this pull request as ready for review October 11, 2026 20:34
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvo忙 <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv merged commit 99905ec into main Oct 14, 2026
41 checks passed
@skjnldsv
skjnldsv deleted the feature/mail-template-blocks branch October 14, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants