Hi,
My company's website is being hosted on a Network Solutions VPS. We purchased a php upgrade, 5.0 to 5.2.14, on the request of our new design company. Now the mail() function in our "contact us" forms isn't working correctly. I put up this little page and found that it's the headers argument causing the problems.
The first mail() call works fine, the second gets trapped in our spam filter with an "illegal mime type" error.
We don't have anyone on staff who knows php or its configuration well enough to get this fixed. Network Solutions considers the upgrade successful and wants to bill us to get the mail function working. Before we get stuck forking over another couple hundred dollars I wanted to see if anybody here can help.
Any ideas?
Thanks,
Pat
My company's website is being hosted on a Network Solutions VPS. We purchased a php upgrade, 5.0 to 5.2.14, on the request of our new design company. Now the mail() function in our "contact us" forms isn't working correctly. I put up this little page and found that it's the headers argument causing the problems.
Code:
<?php
$to = "xxx@xxx.com";
$subject = "this is only a test";
$body = "holy headless horseman batman!";
$headers = 'From: xxx@xxx.com' . "\r\n";
echo("To: $to <br>Subject: $subject<br>Body: $body<br>Headers: $headers");
mail($to,$subject,$body);
mail($to,$subject,$body,$headers);
?>
The first mail() call works fine, the second gets trapped in our spam filter with an "illegal mime type" error.
We don't have anyone on staff who knows php or its configuration well enough to get this fixed. Network Solutions considers the upgrade successful and wants to bill us to get the mail function working. Before we get stuck forking over another couple hundred dollars I wanted to see if anybody here can help.
Any ideas?
Thanks,
Pat