Solved the Problem.
if the From-Line get no "@" char i simply use the returnpath. :) if i
got no returnpath theres no respond. Basta :D
Like this:
foreach ($mail as $line)
{
$line = trim($line);
if (substr($line, 0, 12) == 'Return-Path:')
{
$returnpath = substr($line, strpos($line, '<') + 1, strpos($line,
'>') - strpos($line, '<')-1)."\n";
}
if (substr($line, 0, 5) == 'From:' && strstr($line,"@"))
{
$address = substr($line, strpos($line, '<') + 1, strpos($line, '>')
- strpos($line, '<')-1)."\n";
break;
}
elseif(substr($line,0,5) == 'From:' && !strstr($line,"@") && !empty
($returnpath))
{
$address = $returnpath;
break;