RickBooker
Technical User
I am using phpmaillist (a mail list managment program) When I send mail the headers (From:Subject:etc) show up in the body of the message and nothing shows in my email program(Outlook Express). The From header in the received email shows Apache (my server address) Here is the code in my sendmail.php file. Any point in the right direction would be appreciated greatly.
<html><head><title>Updating file....</title></head><body>
<?
$headers .= "From: Rick <rickbooker@home.com>\n";
$headers .= "Return-Path: <rickbooker@home.com>\n";
$addresses = file("data/$List"
;
for ($index=0; $index < count($addresses); $index++)
{
mail("$addresses[$index]",$Subject,$Message,$headers);
}
$myfile = fopen("data/log.txt","a"
;
fputs($myfile,$Subject."\t\t".date("dS of F Y h:i:s A"
."\t\t".$List."\n"
;
fclose($myfile);
?>
Mail has been sent to:
<?
echo $List;
?>
<BR>
Home.
</body></html>
<html><head><title>Updating file....</title></head><body>
<?
$headers .= "From: Rick <rickbooker@home.com>\n";
$headers .= "Return-Path: <rickbooker@home.com>\n";
$addresses = file("data/$List"
for ($index=0; $index < count($addresses); $index++)
{
mail("$addresses[$index]",$Subject,$Message,$headers);
}
$myfile = fopen("data/log.txt","a"
fputs($myfile,$Subject."\t\t".date("dS of F Y h:i:s A"
fclose($myfile);
?>
Mail has been sent to:
<?
echo $List;
?>
<BR>
Home.
</body></html>