I want to receive mail when a user submit a form. I did it by:
- Code: Select all
$sendto = "email@myemail.com";
$subject = "New post !!!";
$message = "A new post Received";
$header = "From: NEW_POST <no-reply@myemail.com>\r\n";
mail($sendto, $subject, $message, $header);
Its working. But I want to receive mail as "A new post Received from JOHN" where the name "JOHN" is collected from the form that he entered as his name.
Please help me
Fahim



