Hello,
is there a way to edit the e-mail templates of the notification, that you can activate in Cockpit-forms, after a form was submitted?
I couldn’t find a thread regarding this topic, maybe someone can help me out.
Greetings
Hello,
is there a way to edit the e-mail templates of the notification, that you can activate in Cockpit-forms, after a form was submitted?
I couldn’t find a thread regarding this topic, maybe someone can help me out.
Greetings
You can save your own template in path/to/cockpit/config/forms/emails/form_name.php
. “form_name” is the name of your form.
form_name.php
:
<!DOCTYPE HTML>
<html><head><meta charset="utf-8" /></head><body>
<p>Hello</p>
@foreach ($data as $field => $val)
<p><strong>{{ $field }}:</strong><br />
{{ $val }}</p>
@endforeach
</body></html>
thank you very much!