I'm using a Custom Wordpress Template which is using the `wp_mail` Function.

So I have this code below, and the bolded portion is giving me problems:

wp\_mail($et\_email\_to, sprintf( '[%s] ' . esc\_html($\_POST['et\_contact\_subject']), $et\_site\_name ), **esc\_html($\_POST['et\_contact\_message'])**,'From: "'. esc\_html($\_POST['et\_contact\_name']) .'" <' . esc\_html($\_POST['et\_contact\_email']) . '>');

I want to include extra stuff where the Message portion is. `esc_html($_POST['et_contact_message'])`

When I try to add anything extra there, it gives various PHP errors.

If I replace that `esc_html()` part with normal text like '12345', it works fine.

What I want to add to the end of my messages is this:

```
"IP Address: ".$_SERVER['REMOTE_ADDR']."

Came From: ".$_SERVER['HTTP_REFERER']."

Browser: ".$_SERVER['HTTP_USER_AGENT']

```

It works fine if I remove that `esc_html()` portion, but I can't get both to work together.

`esc_html()` works fine by itself also, it prints the Message from the Contact form.
I just can't get both things to work together.

These will fail for example:

```
esc_html($_POST['et_contact_message']) 12345,

esc_html($_POST['et_contact_message'] $_SERVER['REMOTE_ADDR']),

```

etc...

Please help me out here.
Thanks!