I am using this code in Contact form PHP file, suppose myphpfile.php:-
<?php $email = $_POST['email']; $recipient = "[email protected]"; $subject = "Contact Form"; $mailheader = "From: $email \r\n"; mail($recipient, $mailheader) or die("Error!"); echo "Thank You!"; ?>and This HTML
Enter your valid email id:
The form is working.
But the problem is that the email I receive is sent from [email protected] and not from sender’s email id.
I want to receive emails from Sender’s email id (email id filled in the form by subscriber).
help me in this regard!