Skip to content

Added styles to to email

Niku Singh requested to merge gitlab-community/gitlab:solves#417027 into master

What does this MR do and why?

This MR "Add style to email with subject "Two-factor authentication disabled" as described here #417027 (closed).

This MR makes changes https://gitlab.com/gitlab-org/gitlab/-/blob/a679324a3a668b1548f0b5394e0c2874f6c8cf9f/app/mailers/emails/profile.rb#L73-84 , https://gitlab.com/gitlab-org/gitlab/-/blob/a679324a3a668b1548f0b5394e0c2874f6c8cf9f/app/mailers/emails/profile.rb#L160-168

by adding email_with_layout method Instead of mail_with_locale

Screenshots

Before After
Screenshot from 2023-07-16 18-49-59.png Screenshot from 2023-07-16 19-19-27.png
Screenshot from 2023-07-16 19-12-17.png Screenshot from 2023-07-16 20-01-56.png

Merge request reports