update the wording of emails

pull/133/head
Alex Turchyn 2 years ago
parent 2f0c79444b
commit 745f2160c5

@ -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),

@ -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

@ -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}}'

@ -3,7 +3,7 @@
<% else %>
<p>Hi there,</p>
<p>Please check the copy of your "<%= @submitter.submission.template.name %>" submission in the email attachments.</p>
<p>Alternatively, you can download the copy using:</p>
<p>Alternatively, you can download your copy using:</p>
<% @documents.each do |document| %>
<ul>
<li>

@ -5,7 +5,7 @@
<% end %>
<% else %>
<p>Hi there,</p>
<p>You have been invited to submit the "<%= @submitter.submission.template.name %>" form</p>
<p>You have been invited to submit the "<%= @submitter.submission.template.name %>" form.</p>
<p><%= link_to 'Submit Form', submit_form_url(slug: @submitter.slug, t: SubmissionEvents.build_tracking_param(@submitter, 'click_email')) %></p>
<p>Please contact us by replying to this email if you didn't request this.</p>
<p>

Loading…
Cancel
Save