> >Hello, > > > >on 10/31/2006 01:36 PM Andy said the following: > > > > > >>I need a class that reads emails from a server and reads the > >> > >> > >attachments from the mail. > > > > > >>The mailservers is an IMAP for mail reading. > >> > >>The attachment types can be: images/pdf/text documents. > >> > >>Any suggestions? > >> > >>On phpclasses.org did not find any which works well. > >> > >> > > > >I think the PHP IMAP extension can do all you need, if you have it > >installed. Otherwise, you can just use pure PHP IMAP client class and > >the use this MIME message parser to extract the message body parts into > >a string or a separate file: > > > >http://www.phpclasses.org/mimeparser > > > >This gets the messages without using the PHP IMAP extension: > > > >http://www.phpclasses.org/imap > > > > > > > > > Im facing a simliar problem Im using the mimeparser and the pop3class > and can see the attachment name but im not sure how to access it and > save it to a directory of my choice. So far I see the results of the > array generated after the message has been coded but still not sure how > to access the attachement. The output is as follows: > I had to solve a similar problem recently and used customised version of this: http://uk.php.net/manual/en/function.imap-fetchstructure.php#51497 Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php