I trying to send email using mail() function... here is my code:
<html>
<form action ="" method ="post">
<input type="submit" name= "email" value="email">
<form>
<?php
if (isset($_POST['email']))
{
mail("receiver@hotmail.com", "Subject: Hi", "hello" );
echo "Mail Sent";
}
?>
</html>
the code about works just fine, I can get the email but the only problem was when I check the email, the sender will be "webmaster@something.org"
I tried to change the code to:
mail("receiver@hotmail.com", "Subject: Hi","hello", "From: sender@yahoo.com" );
but it didn't work... Could you please help me to include the name of the person who sent the email... Thank a lot