Describe the solution you'd like
If a user fills out a form, they often expect to receive a confirmation mail. E.g. after filling out a job application form, you often receive an automated mail saying "Thanks for your application, here is an overview of the data you submitted: ....", possibly including extra information about the further process. It would be nice to be able to configure such an automated mail in Nextcloud Forms. Building blocks for the mail body would be:
This requires including a special Email-field in the form for responding (depends on #177) and maybe an optional checkbox "I want to receive a confirmation mail"
Possible implementation variants
a) Standalone
Define a mail body template and subject per each form, select one of the mail accounts configured in "Mail" as sender (alternatively provide SMTP data) per each form
b) Using Nextcloud Flow
I didn't use Nextcloud Flow before, but if it is what I think it is, I could imagine it brings all the necessary building blocks for this, if integrated into forms.
I could imagine defining a flow as follows: when new form answer arrives, use the message body defined in "template.md", replace "{name}" placeholder by value from field "{name}" and "{data}" placeholder by the data overview. Send email to the address from field {email}, using the account "[email protected]" from the "Mail" app.
c) Using External Scripts
Provide a REST-API/Webhooks/etc. so I can have an external 10 lines Python script to take care of it. Maybe this is already possible? (waiting for #451 to answer this)
Hey! Thanks for your suggestion!
That is interesting! @jancborchardt what do you think?
Sure, but let鈥檚 keep it dead-simple:
At the end of every form, just before the submit button, there could be a checkbox:
- [ ] Get a copy of the responses via mail to:
[ [email protected] ]
And that鈥檚 all. It would be unchecked by default, and if it鈥檚 checked you can fill in your email address.
If the person filling it is a Nextcloud user, their email from the profile can be prefilled here.
(Nothing the admin or form creator has to decide about this since it鈥檚 a feature purely for user convenience. It will use the standard Nextcloud mail template and we鈥檙e not going into the rabbit hole of customization here. ;))
Sure, but let鈥檚 keep it dead-simple:
At the end of every form, just before the submit button, there could be a checkbox:
- [ ] Get a copy of the responses via mail to:
[ [email protected] ]And that鈥檚 all. It would be unchecked by default, and if it鈥檚 checked you can fill in your email address.
If the person filling it is a Nextcloud user, their email from the profile can be prefilled here.(Nothing the admin or form creator has to decide about this since it鈥檚 a feature purely for user convenience. It will use the standard Nextcloud mail template and we鈥檙e not going into the rabbit hole of customization here. ;))
It also would be nice to let the admin choose the default value here.
Hello around, just a quick message to wake up this topic. any news about its implementation maybe? :)
Most helpful comment
Sure, but let鈥檚 keep it dead-simple:
At the end of every form, just before the submit button, there could be a checkbox:
And that鈥檚 all. It would be unchecked by default, and if it鈥檚 checked you can fill in your email address.
If the person filling it is a Nextcloud user, their email from the profile can be prefilled here.
(Nothing the admin or form creator has to decide about this since it鈥檚 a feature purely for user convenience. It will use the standard Nextcloud mail template and we鈥檙e not going into the rabbit hole of customization here. ;))