If I use the $header var in mail function i can not send mail to any address.
I am using hostrocket as a host.
I am trying a very simply script.
$to = "me@my.com";
$body = "hello";
$subject = "hi there";
$header = "From: The Sender <test@testing.com>\n";
mail($to, $subject, $body, $header);
What could be the problem? If I take out $header, the email sends fine.