Hi!
Though i'm not the coder of the next few lines of PHP, probably someone will benefit from it.
I've been having trouble with Redhat 9 (or any other equivelant box) sending mails to external email adresses for quite some time.
Linux complains about the 'Data format error'.
I found this piece of code (so for the record, it's not mine) and it helped me out.
If you have the DSN Data format error on your Linux box, try this:
$to6=$email;
$subject6="Subject";
$sentbygs = "info@youremail.com";
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/HTML; charset=ISO-8859-1\r\n";
$mailheaders .= "From: you <info@youremail.com>\r\n";
$subject6=stripslashes($subject6);
@mail("$to6", $subject6, stripslashes($msg5), $mailheaders, "-f$sentbygs");
it worked for me, i've seen a lot of people struggling with it, hope this helps. I tried, i tested it on Redhat 9, it works.
thefisherman