Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

solracsf
Copy link
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
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
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
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
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
Member

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

@solracsf
Copy link
Member Author

They don't seem related.

@susnux
Copy link
Contributor

susnux commented Feb 11, 2025

@jancborchardt unrelated, flaky tests 😔

@AndyScherzinger
Copy link
Member

/backport to stable31

@AndyScherzinger AndyScherzinger merged commit f2b25a4 into master Feb 12, 2025
189 checks passed
@AndyScherzinger AndyScherzinger deleted the useNameNotUrl branch February 12, 2025 11:25
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.

5 participants