Mikijs Posted May 23, 2008 Report Posted May 23, 2008 (edited) Amm :) man ir tads jautajums, ka var dabut e-pasta vestules hederi (Description)? itka ar funkciju $struktura=imap_fetchstructure($email->mbox,$vestules_numurs); $apraksts=$struktura->parts[0]->description; $failanosaukums=$struktura->parts[0]->parametrs->value; $failaatributs=$struktura->parts[0]->parametrs->attribute; bet ja vestule nav teksta bet tikai 1 fails pievienots tadejadi ir 1 dala (part) tad vinjs nedod ne aprakstu ne nosaukumu ne atributus :( ko lai izdara?, mails ir POP3 bet tas nav svarigi saja situacija Edited May 23, 2008 by Mikijs
bubu Posted May 23, 2008 Report Posted May 23, 2008 Lūdzu izlabo topika nosaukumu, citādi šim topikam ir ceļs uz Drazu..
Mikijs Posted May 23, 2008 Author Report Posted May 23, 2008 imap_fetcheaders merkis ir dabut To, From, CC, BCC, subject bet nevis PART nosaukumu/atributus/enkondingus u.c
Aleksejs Posted May 23, 2008 Report Posted May 23, 2008 Gadījumā neesi nokļūdījies, uzrakstot part nevis parts? $failanosaukums=$struktura->parts[0]->parametrs->value; $failaatributs=$struktura->parts[0]->parametrs->attribute;
Mikijs Posted May 23, 2008 Author Report Posted May 23, 2008 (edited) nea nesmu :) man seit ta uzrakstijas :) bet koda ir parts Edited May 23, 2008 by Mikijs
Aleksejs Posted May 23, 2008 Report Posted May 23, 2008 Nu, tad nezinu. Es darītu tā, ka izechotu: print_r($struktura); Varbūt tas radītu pārdomas
Mikijs Posted May 23, 2008 Author Report Posted May 23, 2008 stdClass Object ( [type] => 5 [encoding] => 3 [ifsubtype] => 1 [subtype] => JPEG [ifdescription] => 0 [ifid] => 0 [bytes] => 13004 [ifdisposition] => 1 [disposition] => ATTACHMENT [ifdparameters] => 1 [dparameters] => Array ( [0] => stdClass Object ( [attribute] => FILENAME [value] => fas.JPG ) ) [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => NAME [value] => vot un ka lai to FILENAME [value] dabun ? ;/
Mikijs Posted May 23, 2008 Author Report Posted May 23, 2008 (edited) struktureti stdClass Object ( [type] => 5 [encoding] => 3 [ifsubtype] => 1 [subtype] => JPEG [ifdescription] => 0 [ifid] => 0 [bytes] => 13004 [ifdisposition] => 1 [disposition] => ATTACHMENT [ifdparameters] => 1 [dparameters] => Array ( [0] => stdClass Object ( [attribute] => FILENAME [value] => fas.JPG ) ) [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => NAME [value] => Edited May 23, 2008 by Mikijs
Recommended Posts