# Edit e-mail template in forms

**URL:** <https://discourse.getcockpit.com/t/edit-e-mail-template-in-forms/1233>\
**Category:** Uncategorized\
**Created:** [February 27, 2020, 8:33am UTC](https://discourse.getcockpit.com/t/edit-e-mail-template-in-forms/1233 "2020-02-27T08:33:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnebob](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Arnebob](https://discourse.getcockpit.com/u/Arnebob)\
**Post date:** [February 27, 2020, 8:33am UTC](https://discourse.getcockpit.com/t/edit-e-mail-template-in-forms/1233/1 "2020-02-27T08:33:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [February 27, 2020, 8:59pm UTC](https://discourse.getcockpit.com/t/edit-e-mail-template-in-forms/1233/2 "2020-02-27T20:59:11Z")

</div>

You can save your own template in `path/to/cockpit/config/forms/emails/form_name.php`. “form\_name” is the name of your form.

> <https://github.com/agentejo/cockpit/blob/next/modules/Forms/bootstrap.php#L286>

`form_name.php`:

```auto
<!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>

```

---

<div class="post-metadata">

**Author:** ![Arnebob](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Arnebob](https://discourse.getcockpit.com/u/Arnebob)\
**Post date:** [February 28, 2020, 8:20pm UTC](https://discourse.getcockpit.com/t/edit-e-mail-template-in-forms/1233/3 "2020-02-28T20:20:23Z")

</div>

thank you very much!
