PHP Manual: mailparse_msg_parse_file
mailparse_msg_parse_file
Description
resource mailparse_msg_parse_file ( string filename )Parses a file. This is the optimal way of parsing a mail file that you have on disk.
Parameters
filenamePath to the file holding the message. The file is opened and streamed through the parser.