You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements issue #525 - Send confirmation emails to form respondents after submission.
Features:
- Add database migration for confirmation email settings (enabled, subject, body)
- Add confirmation email fields to Form entity
- Implement email sending with placeholder replacement:
- {formTitle}, {formDescription}, {data} placeholders
- Field name placeholders (e.g. {name}, {email})
- Automatic data overview if {data} not in template
- Add UI in Settings sidebar to configure confirmation emails
- Automatically detect email field from form submissions
- Send email from form owner's email address
Technical changes:
- Add sendConfirmationEmail() method to FormsService
- Integrate email sending into notifyNewSubmission() flow
- Add unit tests for confirmation email functionality
- Update FormsService constructor with IMailer and AnswerMapper dependencies
- Update documentation (DataStructure.md, CHANGELOG.en.md)
The feature requires at least one email-validated short text question in the form.
Email sending failures are logged but don't break the submission process.
Signed-off-by: Dmitry Tretyakov <dtretyakov@gmail.com>
Copy file name to clipboardExpand all lines: docs/DataStructure.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ This document describes the Object-Structure, that is used within the Forms App
21
21
| description | String | max. 8192 ch. | The Form description |
22
22
| ownerId | String || The nextcloud userId of the form owner |
23
23
| submissionMessage | String | max. 2048 ch. | Optional custom message, with Markdown support, to be shown to users when the form is submitted (default is used if set to null) |
24
+
| confirmationEmailEnabled | Boolean || If enabled, send a confirmation email to the respondent after submission |
0 commit comments