I have tried 2 ways
using mail() :
-------------------------------------------------------------------------------------
$headers1= "From:
me@atmy.net<me@atmy.net>\";
$headers1 = "To: \"/nocover\" <11111111111@faxcompany.com>\n";
$headers1 .= "X-S2F-BillingInfo: Online Order From $site_name\n";
$headers1 .= "X-S2F-NotificationAddress: $email\n";
$headers1 .= "\r\n\r\n";
$snd2 = ' \"/nocover\" <11111111111@faxcompany.com>';
mail($snd2, $subject, $email_content, $headers1);
-------------------------------------------------------------------------------------
Fax comapny has told me everything else is fine just that the To field and the From Field is switched and that it is because the problem is within the mail() function they said they had found it on some board to be in violation of the RFC. I also confirmed this. They told me try through sendmail and it is the same thing. sendmail code below.
using sendmail diretly :
-------------------------------------------------------------------------------------
$fp = popen('/usr/sbin/sendmail -t','w');
fputs($fp,"From:
me@atmy.net<me@atmy.net>\n");
fputs($fp,"To: \"/nocover\" <11111111111@faxcompany.com>\n");
fputs($fp,"X-S2F-BillingInfo: Online Order From $site_name\n");
fputs($fp,"X-S2F-NotificationAddress: $email\n");
fputs($fp,"Subject: $subject\n\n");
fputs($fp,"$email_content");
pclose($fp);
-------------------------------------------------------------------------------------
mail is send fine through both the only problem is, as stated before, the To and From fieds being switched no matter how I write the header. And the problem is the actually way the fax companies code is written because the conform strictly to the RFC standard and will not change. I have also tried to leave the first variable null in the mail() function as I found this on php.net under the mail.function page. This only caused it not to send
Thanks for any help