$str = $msg->header_as_string; print "\n
Header: \n
".$str."
\n";