Skip to content

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

Merged
AndyScherzinger merged 1 commit into
masterfrom
useNameNotUrl
Feb 12, 2025
Merged

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

Conversation

@solracsf

@solracsf solracsf commented Feb 6, 2025

Copy link
Copy Markdown
Member

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

@jancborchardt jancborchardt left a comment

Copy link
Copy Markdown
Member

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!

@come-nc come-nc left a comment

Copy link
Copy Markdown
Contributor

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

solracsf commented Feb 11, 2025

Copy link
Copy Markdown
Member Author

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

@come-nc come-nc left a comment

Copy link
Copy Markdown
Contributor

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

susnux commented Feb 11, 2025

Copy link
Copy Markdown
Contributor

@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