# WP Form action labels not showing in E-Mail

**URL:** <https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991>\
**Category:** Bug Reports\
**Tags:** wordpress\
**Created:** [September 23, 2022, 3:14pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991 "2022-09-23T15:14:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wolfgang.Hartl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/wolfgang.hartl/32/4621_2.png) [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Post date:** [September 23, 2022, 3:14pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/1 "2022-09-23T15:14:02Z")

</div>

Hey there,

I was just playing around with the Wordpress Form-Action, which I find a very coool feature!

I’ve also read up the tutorial here first: [Form | Pinegrow Web Editor](https://pinegrow.com/docs/wordpress/actions/form/)

I’m not sure if this is considered as a bug or if i just misconfigured something, but for some reason in my E-Mail Confirmation I don’t see the labels of the Input-Fields.

My Form looks the following (i’m using floating labels of Bootstrap, if that makes any difference):

 ![Bildschirmfoto 2022-09-23 um 17.10.11](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/f83c65327f7b2d2b5bf2d334562251c2d9c8c3c5.png)

And the E-Mail I get looks like this:

 ![Bildschirmfoto 2022-09-23 um 17.11.08](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/c/c90e4c666e7d03c9495ea68e416ab9a8ef8458d6.png)

So all the Labels get replaced with: “contact\_form\_mailer\_id\_\*”

Any Idea why this is happening, and how I could translate them into nice plain Text, as in the tutorial?

Which label/field/ HTML-Attribute is responsible for that naming here? Is it the HTML-Content of the label itself?

TIA for your help!

Cheers

---

<div class="post-metadata">

**Author:** ![Wolfgang.Hartl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/wolfgang.hartl/32/4621_2.png) [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Post date:** [September 23, 2022, 3:23pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/2 "2022-09-23T15:23:59Z")

</div>

Ok, sorry stupid me. The HTML `name` attribute is responsible for the naming of the label! Sorry, normally I don’t need that attribute, that’s why I always leave it out!

But maybe a hint in the docs that the `name` attribute is responsible for the naming of the label wouldn’t be too bad. Just in Case some people like me stumble around it! 😉

---

<div class="post-metadata">

**Author:** ![Wolfgang.Hartl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/wolfgang.hartl/32/4621_2.png) [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Post date:** [September 26, 2022, 12:00pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/3 "2022-09-26T12:00:43Z")

</div>

@matjaz Have to come back to that topic since I’m facing another Issue.

The form works fine on my local environment, but whenever I want to use it on a “real” site the form can’t be submitted.

Is there any way to debug whats going on here and why it can’t be submitted?

![Bildschirmfoto 2022-09-26 um 14.00.25](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/0a941bb5d3b0c9895f76d0552702ff559bdb33df.png)

Thanks in Advance!

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 26, 2022, 4:18pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/4 "2022-09-26T16:18:54Z")

</div>

@Wolfgang.Hartl which method are you using to process the form: email, post type or callback?

If any of the set options can not be processed (for example, a callback function does not exist) the form fails.

For emails, wp\_mail gets called. That fails if PHPMailer has an exception. Are you using default wp\_mail or some kind of mailer plugin?

This might help debug mailing issues, or at least determine if that is indeed the issue:

> <https://stackoverflow.com/questions/50715122/how-to-display-wp-mail-errors>

---

<div class="post-metadata">

**Author:** ![Wolfgang.Hartl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/wolfgang.hartl/32/4621_2.png) [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Post date:** [September 26, 2022, 6:55pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/5 "2022-09-26T18:55:08Z")

</div>

Hey @matjaz , thanks for your response.

Sorry forgot to mention that, I’m just using the mail setting with normal wp\_mail(). Standard php\_mail…but normally I’m using fluentSMTP which i haven’t set up in that site yet. Will check that link out and see if I can find anything there.

Just one thought i have with the callback (didn’t run any tests on it, maybe it’s totally obvious):

Can I use the callback function without the need of ticking the email/post checkbox? I’ve read somewhere in the docs, that I can pass the form data as argument. I could then simply send 2 emails if I see it right, one for the guy who had filled the form and one to the admin of the site for example? Is the form just using ajax to call that function or is there something special about it to know?! 🙂

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 26, 2022, 7:40pm UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/6 "2022-09-26T19:40:49Z")

</div>

> [@Wolfgang.Hartl](#):
>
> but normally I’m using fluentSMTP which i haven’t set up in that site yet. Will check that link out and see if I can find anything there.

This might be the reason it fails. Normal wp\_mail is very limited.

> [@Wolfgang.Hartl](#):
>
> Can I use the callback function without the need of ticking the email/post checkbox?

Yes. The first argument of the function is $form\_data, an associative array of key = value data.

The form is not even calling ajax, it is simply form posting to the current page and handling that.

> [@Wolfgang.Hartl](#):
>
> I could then simply send 2 emails if I see it right, one for the guy who had filled the form and one to the admin of the site for example?

Be careful with sending emails back to the person who submitted the form. That is a way for spammers to send messages to random people (by posting the form with their emails). I would at least do captcha in that case.

---

<div class="post-metadata">

**Author:** ![Wolfgang.Hartl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/wolfgang.hartl/32/4621_2.png) [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Post date:** [September 27, 2022, 8:29am UTC](https://forum.pinegrow.com/t/wp-form-action-labels-not-showing-in-e-mail/6991/7 "2022-09-27T08:29:23Z")

</div>

> [@matjaz](#):
>
> This might be the reason it fails. Normal wp\_mail is very limited.

Oh, well yes probably. I have to confess that the site is on a hosting I don’t know very good and maybe there is also some problem with the php\_mail settings, gonna have a deeper look into that, because normally I was at least able to send a mail with wp\_mail()…even if it doesn’t really worked well 😃

> [@matjaz](#):
>
> The form is not even calling ajax, it is simply form posting to the current page and handling that.

Ooooh yes, I see, thanks. - I thought it was ajax because the site loaded so fast that I didn’t even realised a difference 🙂

> [@matjaz](#):
>
> Be careful with sending emails back to the person who submitted the form. That is a way for spammers to send messages to random people (by posting the form with their emails). I would at least do captcha in that case.

Thanks for that advice. My personal experience with spam mails is that multi-step forms avoid a lot of bot generated spams. So I always aim to include multi-step forms! 😉  
But I didn’t think of that way around to use the form as “my personal email provider” and to get my spam sended form a “trusted” Domain is a new idea to me. Those spammers really have great ideas! 😃

But anyway, with the callback function I can create such cool stuff in combination with forms, it’s just simply great in my opinion … have to test that out!
