PHP Classes

Store subject into the file

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Store subject into the file  >  (Un) Subscribe thread alerts  
Subject:Store subject into the file
Summary:How can i store the subject into the file
Messages:4
Author:D K
Date:2008-03-02 15:58:22
Update:2008-03-26 20:38:33
 

 


  1. Store subject into the file   Reply   Report abuse  
Picture of D K D K - 2008-03-02 15:58:22
Hi manuel!

I use the mime_parser.php class and pop3.php class. It works very well.
So I have now a question. It is possible the subject from the email store into the file? So the subject add to the text of the mail?

Thank you!
Detlef


  2. Re: Store subject into the file   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-02 19:31:26 - In reply to message 1 from D K
I am not sure what you mean. Currently the class does not store header values in files. If you just want to store the message subject in a file, you can always use a function like:

file_put_contents('filename here', $decoded['Headers']['Subject']);

  3. Re: Store subject into the file   Reply   Report abuse  
Picture of santhosh santhosh - 2008-03-26 10:43:02 - In reply to message 2 from Manuel Lemos
file_put_contents('filename here', $decoded['Headers']['Subject']);

can i create file and put it this function is it ok
for getting subject from mail

  4. Re: Store subject into the file   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-26 20:38:33 - In reply to message 3 from santhosh
You do not need to store the subject in a file. Just use the expression $decoded['Headers']['Subject'] after calling the class Decode function.