adjust default email
This commit is contained in:
@@ -43,7 +43,9 @@ class SubmitterMailer < ApplicationMailer
|
||||
if @email_config
|
||||
ReplaceEmailVariables.call(@email_config.value['subject'], submitter:)
|
||||
else
|
||||
%(#{submitter.email} has completed the "#{submitter.submission.template.name}" form)
|
||||
submitters = submitter.submission.submitters.order(:completed_at)
|
||||
.map { |e| e.name || e.email || e.phone }.join(', ')
|
||||
%(#{submitter.submission.template.name} has been completed by #{submitters})
|
||||
end
|
||||
|
||||
mail(from: from_address_for_submitter(submitter),
|
||||
|
||||
@@ -36,7 +36,7 @@ class AccountConfig < ApplicationRecord
|
||||
'{{account.name}}'
|
||||
},
|
||||
SUBMITTER_COMPLETED_EMAIL_KEY => {
|
||||
'subject' => '{{submitter.name}} has completed the "{{template.name}}" form',
|
||||
'subject' => '{{template.name}} has been completed by {{submission.submitters}}',
|
||||
'body' => "Hi,\n\n" \
|
||||
"\"{{template.name}}\" form has been completed by {{submission.submitters}}\n\n" \
|
||||
'{{submission.link}}'
|
||||
|
||||
Reference in New Issue
Block a user