Is there something better than using mail()? On both of my web sites that have a mail form, when users send mail the recipient sees it as coming from the site, not from who's in the from: field. 😕 Any suggestions would be appreciated.
Here's the relevant code snippet:
<?php
if (isset($POST['mailsend']))
{
$to="example@example.com";
$from=$POST['from'];
$subject=$POST['subject'];
$message=$POST['message'];
mail("$to","$subject","From: $from $message");
?><p><p>
<center>
<b>Your mail has been sent!</b>
</center>
<p><p>
<?php
}