diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
commit | 419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch) | |
tree | 1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /app/mailers/emails/in_product_marketing.rb | |
parent | 1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff) |
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'app/mailers/emails/in_product_marketing.rb')
-rw-r--r-- | app/mailers/emails/in_product_marketing.rb | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/app/mailers/emails/in_product_marketing.rb b/app/mailers/emails/in_product_marketing.rb deleted file mode 100644 index 92743dc1926..00000000000 --- a/app/mailers/emails/in_product_marketing.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true - -module Emails - module InProductMarketing - FROM_ADDRESS = 'GitLab <team@gitlab.com>' - CUSTOM_HEADERS = { - from: FROM_ADDRESS, - reply_to: FROM_ADDRESS, - 'X-Mailgun-Track' => 'yes', - 'X-Mailgun-Track-Clicks' => 'yes', - 'X-Mailgun-Track-Opens' => 'yes', - 'X-Mailgun-Tag' => 'marketing' - }.freeze - - def build_ios_app_guide_email(recipient_email) - @message = ::Gitlab::Email::Message::BuildIosAppGuide.new - - mail_to(to: recipient_email, subject: @message.subject_line) - end - - private - - def mail_to(to:, subject:) - custom_headers = Gitlab.com? ? CUSTOM_HEADERS : {} - mail_with_locale(to: to, subject: subject, **custom_headers) do |format| - format.html do - @message.format = :html - - render layout: 'in_product_marketing_mailer' - end - - format.text do - @message.format = :text - - render layout: nil - end - end - end - end -end - -Emails::InProductMarketing.prepend_mod |