Update usercap email to use standard email template
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
What does this MR do and why?
This code update modifies the way emails are sent when a user reaches a certain usage limit. The subject of the email remains the same, but the email is now sent using a standard layout. Additionally, several tests have been added to ensure that the email meets certain criteria, such as not having Gmail Actions links and preventing users from unsubscribing through a footer link. These changes aim to improve the consistency and reliability of the email notifications sent to users.
Changelog: changed
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Ignore the missing logos. My gdk network config is screwy. This renders fine in a different env.
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Visit http://gdk.local/rails/mailers/notify/user_cap_reached