> - $data .= "FROM: <root\@$hostname>\n"; > + $data .= "FROM: <$mailfrom>\n"; Would you mind to explain why you need that? IMHO, <root\@$hostname> is less confusing, because it shows the real host name.