mailparse_install
| From: | Ahmet Ertek | Date: | Sat, 20 Nov 2004 23:15:51 +0000 |
| Subject: | mailparse_install | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-3451@lists.php.net to get a copy of this message | ||
hi.I tried to install mailparse-2.0b.tgz but i got this error:
C:\php>pear install mailparse
downloading mailparse-2.0b.tgz ...
Starting to download mailparse-2.0b.tgz (33,547 bytes)
........done: 33,547 bytes
9 source files, building
The DSP mailparse.dsp does not exist.
my OS is Windows XP and my php is PHP 4.3.6
Then i tried to use Mail_Mime instead.However, after a successful
installation i could not decode a Mime message.I did everything on
pear.php.net like this:
include('Mail/mimeDecode.php');
$message="example.txt";
$opts['include_bodies'] = true;
$opts['decode_bodies'] = true;
$opts['decode_headers'] = true;
$opts['input'] = $message;
$opts['crlf'] = "\n";
$structure = Mail_mimeDecode::decode($opts);
print_r($structure);
echo $structure->headers['from'];
but i couldn't parse that email(that is "example.txt"). How can i parse it?
please help, i need help urgently.
thanks.
ahmet
-------------------------------------------------
This mail sent through IMP: http://webmail.students.itu.edu.tr