From 745f2160c526e08a312887447ba146512aa6c479 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Thu, 12 Oct 2023 22:42:14 +0300 Subject: [PATCH] update the wording of emails --- app/mailers/submitter_mailer.rb | 4 ++-- app/mailers/user_mailer.rb | 2 +- app/models/account_config.rb | 8 ++++---- app/views/submitter_mailer/documents_copy_email.html.erb | 2 +- app/views/submitter_mailer/invitation_email.html.erb | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/mailers/submitter_mailer.rb b/app/mailers/submitter_mailer.rb index 3f40d1d4..0661b705 100644 --- a/app/mailers/submitter_mailer.rb +++ b/app/mailers/submitter_mailer.rb @@ -12,7 +12,7 @@ class SubmitterMailer < ApplicationMailer if @email_config || subject.present? ReplaceEmailVariables.call(subject.presence || @email_config.value['subject'], submitter:) else - 'You have been invited to submit a form' + 'You are invited to submit a form' end mail(to: @submitter.friendly_name, @@ -62,7 +62,7 @@ class SubmitterMailer < ApplicationMailer if @email_config ReplaceEmailVariables.call(@email_config.value['subject'], submitter:) else - 'Your copy of documents' + 'Your document copy' end mail(from: from_address_for_submitter(submitter), diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 2ca4e2c5..45e21e94 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -7,6 +7,6 @@ class UserMailer < ApplicationMailer @token = @user.send(:set_reset_password_token) mail(to: @user.friendly_name, - subject: 'You have been invited to Docuseal') + subject: 'You are invited to DocuSeal') end end diff --git a/app/models/account_config.rb b/app/models/account_config.rb index 11a950b5..9d7c6b21 100644 --- a/app/models/account_config.rb +++ b/app/models/account_config.rb @@ -30,9 +30,9 @@ class AccountConfig < ApplicationRecord DEFAULT_VALUES = { SUBMITTER_INVITATION_EMAIL_KEY => { - 'subject' => 'You have been invited to submit a form', + 'subject' => 'You are invited to submit a form', 'body' => "Hi there,\n\n" \ - "You have been invited to submit the \"{{template.name}}\" form:\n\n" \ + "You have been invited to submit the \"{{template.name}}\" form.\n\n" \ "{{submitter.link}}\n\n" \ "Please contact us by replying to this email if you didn't request this.\n\n" \ "Thanks,\n" \ @@ -45,10 +45,10 @@ class AccountConfig < ApplicationRecord '{{submission.link}}' }, SUBMITTER_DOCUMENTS_COPY_EMAIL_KEY => { - 'subject' => 'Your copy of documents', + 'subject' => 'Your document copy', 'body' => "Hi there,\n\n" \ "Please check the copy of your \"{{template.name}}\" submission in the email attachments.\n" \ - "Alternatively, you can download the copy using:\n\n" \ + "Alternatively, you can download your copy using:\n\n" \ "{{documents.links}}\n\n" \ "Thanks,\n" \ '{{account.name}}' diff --git a/app/views/submitter_mailer/documents_copy_email.html.erb b/app/views/submitter_mailer/documents_copy_email.html.erb index adf633da..931d2aba 100644 --- a/app/views/submitter_mailer/documents_copy_email.html.erb +++ b/app/views/submitter_mailer/documents_copy_email.html.erb @@ -3,7 +3,7 @@ <% else %>

Hi there,

Please check the copy of your "<%= @submitter.submission.template.name %>" submission in the email attachments.

-

Alternatively, you can download the copy using:

+

Alternatively, you can download your copy using:

<% @documents.each do |document| %>