PHP Classes

Problem with saving the email

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Problem with saving the email  >  (Un) Subscribe thread alerts  
Subject:Problem with saving the email
Summary:the 'tmp' directory to save the message not getting formed.
Messages:3
Author:yadnesh
Date:2008-02-29 05:13:14
Update:2008-03-05 03:58:33
 

  1. Problem with saving the email   Reply   Report abuse  
Picture of yadnesh yadnesh - 2008-02-29 05:13:14
Hi manuel,
Your script is precisely what I want and it seems to be executing without errors. Eg: when i run the test_message_decoder.php file with my message saved as message.eml, everything seems to work fine. I have changed the following variables:
$mime->mbox = 0;
$mime->decode_bodies = 1;
$mime->ignore_syntax_errors = 0;
'SaveBody'=>'/tmp',

and have commented this portion
/* Do not retrieve or save message body parts */
//'SkipBody'=>0,

My problem is the 'tmp' directory doesnt seem to appear anywhere on my server and hence the message parts are not getting saved. My intention is saving the parts of a message on the server(including attachments). I am in a fix and have tried out everything. Can you guide me on this please.
ur time and effort is appreciated.
Yadnesh

  2. Re: Problem with saving the email   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-02-29 05:33:46 - In reply to message 1 from yadnesh
/tmp is the default temporary directory for Linux/Unix systems. If you are not using such systems that directory may not exist.

Therefore, you need to change the SaveBody parameter to whatever is the existing directory where you want to save message body parts.

  3. Re: Problem with saving the email   Reply   Report abuse  
Picture of yadnesh yadnesh - 2008-03-05 03:58:33 - In reply to message 2 from Manuel Lemos
Thanx a million mate..ur an absolute legend and ur class is working perfectly for me.