PHP Classes

getting a message based on subject

Recommend this page to a friend!

      Read POP3/IMAP attachment  >  All threads  >  getting a message based on subject  >  (Un) Subscribe thread alerts  
Subject:getting a message based on subject
Summary:How could I get the attachent when email has particular subject
Messages:6
Author:Edwin Martinez
Date:2006-03-18 13:09:13
Update:2011-01-06 17:45:37
 

  1. getting a message based on subject   Reply   Report abuse  
Picture of Edwin Martinez Edwin Martinez - 2006-03-18 13:09:13
How could I get the attachent when email has particular subject.

Let's say I only wanted to get the attachments of the emeils that have a subject "save this file" or something like that?

  2. Re: getting a message based on subject   Reply   Report abuse  
Picture of Jijomon Thottungalthara Jijomon Thottungalthara - 2006-03-20 05:37:30 - In reply to message 1 from Edwin Martinez
pls reffer this page

in2.php.net/manual/en/function.imap ...

  3. Re: getting a message based on subject   Reply   Report abuse  
Picture of Jijomon Thottungalthara Jijomon Thottungalthara - 2006-03-20 05:37:40 - In reply to message 1 from Edwin Martinez
pls reffer this page

in2.php.net/manual/en/function.imap ...

  4. cannot open file error   Reply   Report abuse  
Picture of John John - 2006-07-31 02:48:49 - In reply to message 3 from Jijomon Thottungalthara
When I try to run the script I get the following errors.

aaaa.txt
Warning: fopen(aaaa.txt): failed to open stream: No such file or directory in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 85

Warning: fputs(): supplied argument is not a valid stream resource in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 87

Warning: fclose(): supplied argument is not a valid stream resource in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 88
testing3.jpg
Warning: fopen(testing3.jpg): failed to open stream: No such file or directory in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 85

Warning: fputs(): supplied argument is not a valid stream resource in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 87

Warning: fclose(): supplied argument is not a valid stream resource in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 88
testing2.jpg
Warning: fopen(testing2.jpg): failed to open stream: No such file or directory in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 85

Warning: fputs(): supplied argument is not a valid stream resource in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 87

Warning: fclose(): supplied argument is not a valid stream resource in /home/nicobar/public_html/j2/pop/attachmentread.class.php on line 88

Hmmm? Can you help?

  5. Re: getting a message based on subject   Reply   Report abuse  
Picture of Jijomon Thottungalthara Jijomon Thottungalthara - 2010-07-22 17:49:59 - In reply to message 4 from John
Think there is a path issues , pls try to give absolute path for files

  6. Re: getting a message based on subject   Reply   Report abuse  
Picture of Vitaliy Kuznetsov Vitaliy Kuznetsov - 2011-01-06 17:45:37 - In reply to message 5 from Jijomon Thottungalthara
Hello, Mr. Thottungalthara,

I got a following problem. I need to download an attachment (via a script) which is a zip-archive. While downloading it says that the archive is corrupted. (The error message stays that an archive is either having an unknown format or damaged) But when I open or download it manually without any script it says it's Ok.

Sorry for bothering you.

Best Regards,
Vitaly