"Intos" <in***@mail.comha scritto nel messaggio
news:gb**********@localhost.localdomain...
Is there some code example how to read/send e-mail with PHP ?
Beside this i need to pull out the attachment and to save it in some
directory.
Any idea?
I cannot write down a full sample, that would be a bit long.
You should parse the received message in the part of the attachments, detect
the transfer encoding and decode the attached file(s).
A document about decoding the Attachments
http://pages.prodigy.net/michael_santovec/decode.htm
A decent attachment decoder (from scratch) will require you hours of work.
You can give a look at portions of code of the various php webmail
(uebimiau, nocc, atmail, etc) scripts
or crms like sugarcrm. They all should include a mime recognition and the
complete parsing/decoding of the emails.
Regards
L. A. Iarrusso
http://www.j2be.com