Support » Fixing WordPress » ‘Easy Contact’ form not sending all fields to email address

  • Hello all,

    I am trying to add a form to my website, and the form system I am using (‘Easy Contact’) seems to be perfect, apart from the fact that when I try to send a form, all that I get in the resulting email are three of the fields. I have looked through the .php, and can’t see why some aspects should be available and not others (I’m not brill at php, mind).

    Could someone at least confirm that ‘easy contact’ is supposed to send all the filled in fields of the form to the email address?

    Thanks in advance,


    Site: (The submit an event page)
    WP: 2.8

Viewing 1 replies (of 1 total)
  • zgrs2k


    open the econtact.php file. Immediately after the comments section they name the input fields. I added the name and email to my messages so I used ec_name and ec_email. find the following sentence…”// And our actual message with extra stuff”. this is the body of the message so this is where you would insert the fields that you want.

    I added the follwoing lines to that section

    $message      .=  __( 'Name: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_name'])) . "\n\n---\n";
    $message      .=  __( 'Email: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_email'])) . "\n\n---\n";

    and now the email includes the name and emai. Hope that’s what you were looking for.


Viewing 1 replies (of 1 total)
  • The topic ‘‘Easy Contact’ form not sending all fields to email address’ is closed to new replies.