mailparse_msg_parse_file

(PECL mailparse >= 0.9.0)

mailparse_msg_parse_fileProcesa un archivo

Descripción

mailparse_msg_parse_file(string $filename): resource

Procesa un archivo. Este es el modo óptimo de interpretar un archivo que tenga en disco.

Parámetros

filename

Ruta al archivo que contiene el mensaje. El archivo es abierto y secuenciado a través del analizador sintáctico.

Valores devueltos

Devuelve un recurso MIME que representa la estructura, o false en caso de error.

Ver también

add a note add a note

User Contributed Notes 1 note

up
1
schmidt at cube hyphen concept dot com
3 years ago
I just encountered an internal server error by simply calling
$eml = mailparse_msg_parse_file("$path/eml/$email_id.eml");

The error disappeared after adding
mailparse_msg_free($eml);
to the end of the script.

Without mailparse_msg_free i keep getting an internal server error.
To Top