Originally Posted by willscarlet
Hello everyone, I have used this same email script close to a hundred times now on different sites.
$headers = "From: $from";
$headers = "Cc: $cc";
I'd be surprised if the recipient ever saw who it's from on because you're wiping out the sender on the next line. Try changing = to .= instead but you'll also need the carriage return which typically is \r\n.
To be honest though, I'd just use PHPMailer instead. It's a class you can find via google, include it in your script and it'll make everything a lot easier. You just set the fields you want and tell it to send. It takes care of everything else perfectly. Job done