kharles and beckerartography:
I landed here with the same issue.
I took a look at the code for the plugin and found the problem. The message only includes the form submitter’s information in one place — the “Reply-To:” field.
So if you reply to the email, you’ll see the submitter’s name and email address in the To: field.
I want the email to have the submitter’s information in the From: field (name and email address), and also have the info in the body of the email. Here’s what I did:
1. Open econtact.php, in the easy-contact folder (make a copy first in case something breaks)
2. Around line 233, look for:
$headers .= "From: $from_name <$from_email>\r\n";
and replace with:
$headers .= "From: $user\r\n";
That will change the email header information and display the submitter’s info in the From: field.
3. Around line 250, look for:
$message .= __( 'Website: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_url'])) . "\n\n---\n";
and insert these 2 lines just before it:
$message .= __( 'Name: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_name'])) . "\n\n";
$message .= __( 'Email: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_email'])) . "\n\n";
4. Save and replace the original file on the server.
The email you receive will now look like:
Here is the message…
—
Name: person’s name
Email: person’s email
Website: person’s URL
—
All the other info (IP, referrer, etc)
I’ve tested it out, and this works properly…