Hello List,
I'm trying aroung to split the header and the body of an email but
can't get it to work.
First I read in the email:
$fp = fopen("php://stdin","r");
$count = 0;
while (!feof($fp))
{ $data = fgets($fp,4096);
$data = chop($data);
$count = $count + 1;
$content[] = "$data";
}
fclose($fp);
and then
for ($x=0; $x <= $count; $x++)
{ $sent_data .= "$content[$x]\n";
}
Then I tried stuff like
$mail_split = explode("\r\n\r\n",$sent_data);
How would it work?
Thanks a lot,
Juergen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php