I have a simple form on my website. People leave a name and e-mailadres. They get send a link to a download, and I get send their data.
All of this works on my test server, but not live. My provider is picky about sending mail and wants a proper From adres stated.
Question: how do I go about this. I have a from adres is the header:
$from = 'name@example.com';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: In2Motivation <{$from}>' . "\r\n";
mail($to, $subject, $message, $headers,);
I have also tried: mail($to, $subject, $message, $headers, '-f name@example.com');
But it still won't send anything. Where does this go wrong? Is it my script or is it something on my providers end?
Everyone can help me? Thanks a lot!!!