    FUNC :: mixed split_msg ( string message )

    Return ARRAY if is a message, FALSE if not.

    Split the source mail message.

    Example:

    $msg  = 'From: me@test.net'."\r\n".
    	'To: client@domain.net'."\r\n".
    	'Subject: Hello World!'."\r\n".
    	'Date: Sat, 03 Jun 2006 18:05:35 +0300'."\r\n".
    	'Content-Type: text/plain'."\r\n".
    	"\r\n".
    	'Text message';

    //die($msg);

    $arr = FUNC::split_msg($msg);

    if($arr) print_r($arr);
    else echo 'Invalid message!';

    [ Comments ]

    Last update: Wednesday, June 28, 2006