# WP Form action - email design

**URL:** <https://forum.pinegrow.com/t/wp-form-action-email-design/5668>\
**Category:** Pinegrow WP\
**Created:** [September 16, 2021, 7:26am UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668 "2021-09-16T07:26:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 16, 2021, 7:26am UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668/1 "2021-09-16T07:26:09Z")

</div>

Hi guys  
can someone please tell me if it is possible to design the email that is generated by the wordpress form action? I’ve searched the documentation and forum but can’t find anything like it.

thanks for your help  
horst

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [September 16, 2021, 11:42am UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668/2 "2021-09-16T11:42:42Z")

</div>

Hi @HoWin,  
The WordPress for action is pretty simple. There isn’t really any hooks or anything. The only way you could change it is to alter the `wp_simple_form_mailer.php` file in your exported theme. However, at that point it is probably easier to use a form plugin or implement your own mailer.  
Sorry,  
Bob

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 16, 2021, 3:23pm UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668/3 "2021-09-16T15:23:51Z")

</div>

Hi Bob  
Thank you for your quick reply. I already thought so, but I wanted to be on the safe side, hence my question.

Thanks again  
Horst

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 20, 2021, 3:23am UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668/4 "2021-09-20T03:23:34Z")

</div>

Hi @RobM

Could I please ask you one more question to this subject?

What do I have to make so that WP\_SIMPLE\_FORM\_MAILER.PHP sends an e-mail CC to another recipient?

I adapted WP\_SIMPLE\_FORM\_MAILER.PHP to my needs (multilingual html e-mail for different purposes (contact form, sample order, fair registration)) and the only thing that’s missing is an e-mail copy to the sender. Than this script would be perfect for me, and no need for a plugin 🙂

Thanks for your help.  
Horst

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [September 20, 2021, 9:38am UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668/5 "2021-09-20T09:38:19Z")

</div>

Hi @HoWin,  
Well, the proper way to do it would be to use a filter in your ‘functions.php’. It sounds like you are already altering the base file. If it is always going to be the same CC address then you can add it into the $headers. It is best to do it as an array, but I think it will be fine to just add it to the existing From field. So in the `send_to_email` conditional after the first `$headers` declaration add:

```auto
$cc_email = sanitize_email('ccemail@example.com');
$headers .= 'cc: ' . $cc_email . "\r\n";

```

I think that should work. If not, you will have to convert the current header to an array and add the cc email to that array.  
Let me know,  
Bob

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 28, 2021, 4:50am UTC](https://forum.pinegrow.com/t/wp-form-action-email-design/5668/6 "2021-09-28T04:50:13Z")

</div>

Hi @RobM

Thanks for your help. I modified wp\_simple\_form\_mailer.php to my needs (HTML e-Mail, cc to the originator of the e-mail and so on). I used the content of $\_POST[] to fill the e-Mail and everything works fine now.

I’m not quite sure if this is the best way to do it (because now on every export I get the notice that wp\_simple\_form\_mailer.php was modified outside Pinegrow), but it’s better than to implement an extra plugin.

Maybe this would be a nice feature for Pinegrow for some future improvements. At the moment you can style the on screen message inside Pinegrow. So why not use this piece of code inside the e-mail too? Maybe it would work with some hook, but I don’t know how to do it ☹

Thanks again, and have a nice day.  
Horst
