Skip to content

fix(emailTemplate): use instance Name instead of Url in subject#50692

Merged
AndyScherzinger merged 1 commit intomasterfrom
useNameNotUrl
Feb 12, 2025
Merged

fix(emailTemplate): use instance Name instead of Url in subject#50692
AndyScherzinger merged 1 commit intomasterfrom
useNameNotUrl

Conversation

@solracsf
Copy link
Copy Markdown
Member

@solracsf solracsf commented Feb 6, 2025

Summary

A lot of anti-spam systems doesn't like plain URLs on the email subject (ex.: Orange in France) and place those emails on Junk folder. Use instance Name instead (URL is kept on email body).

Before

Email address for Carroll, Mathieu changed on https://cloud.my-personal-cloud.org/

After

Email address for Carroll, Mathieu changed on My Personal Cloud

Checklist

Copy link
Copy Markdown
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Sounds like it makes sense, we don’t need a link in the subject. :) Thanks a bunch @solracsf!

Copy link
Copy Markdown
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

Hum, but instance name is often simply Nextcloud, no?

@solracsf
Copy link
Copy Markdown
Member Author

solracsf commented Feb 11, 2025

All Activity and Notifications emails (so, 99.9% of emails received) have instance name.
I would even say that ALL other emails have instance name.

Examples:

https://github.com/nextcloud/activity/blob/8c24838746977dd1dca04c9d07b0693d41777cde/lib/DigestSender.php#L167

https://github.com/nextcloud/notifications/blob/b98345d686dcccce533c2f2a088c765eab3f92b2/lib/MailNotifications.php#L208

Copy link
Copy Markdown
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

Fair enough.

@jancborchardt
Copy link
Copy Markdown
Member

@come-nc @solracsf what about the failing tests?

@solracsf
Copy link
Copy Markdown
Member Author

They don't seem related.

@susnux
Copy link
Copy Markdown
Contributor

susnux commented Feb 11, 2025

@jancborchardt unrelated, flaky tests 😔

@AndyScherzinger
Copy link
Copy Markdown
Member

/backport to stable31

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants