mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
automatically send emails when all parties completed the form
This commit is contained in:
1 parent
2fab6984ea
commit
80ad166fd9
9 files changed
+86
-42
No files matched your search
@@ -38,10 +38,8 @@ class AccountConfig < ApplicationRecord
|
||||
SUBMITTER_COMPLETED_EMAIL_KEY => {
|
||||
'subject' => '{{submitter.name}} has completed the "{{template.name}}" form',
|
||||
'body' => "Hi,\n\n" \
|
||||
"{{submitter.name}} has completed the \"{{template.name}}\" form:\n\n" \
|
||||
"{{submission.link}}\n\n" \
|
||||
"Thanks,\n" \
|
||||
'{{account.name}}'
|
||||
"\"{{template.name}}\" form has been completed by {{submission.submitters}}\n\n" \
|
||||
'{{submission.link}}'
|
||||
},
|
||||
SUBMITTER_DOCUMENTS_COPY_EMAIL_KEY => {
|
||||
'subject' => 'Your copy of documents',
|
||||
|
||||
@@ -57,6 +57,14 @@ class Submitter < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
def friendly_name
|
||||
if name.present?
|
||||
"#{name} <#{email}>"
|
||||
else
|
||||
email
|
||||
end
|
||||
end
|
||||
|
||||
def status_event_at
|
||||
completed_at || opened_at || sent_at || created_at
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user