Mikijs Posted May 23, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
Aleksejs Posted May 23, 2008 Report Share Posted May 23, 2008 Ar imap_fetchheader() ? Link to comment Share on other sites More sharing options...
bubu Posted May 23, 2008 Report Share Posted May 23, 2008 Lūdzu izlabo topika nosaukumu, citādi šim topikam ir ceļs uz Drazu.. Link to comment Share on other sites More sharing options...
Mikijs Posted May 23, 2008 Author Report Share Posted May 23, 2008 imap_fetcheaders merkis ir dabut To, From, CC, BCC, subject bet nevis PART nosaukumu/atributus/enkondingus u.c Link to comment Share on other sites More sharing options...
Aleksejs Posted May 23, 2008 Report Share 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; Link to comment Share on other sites More sharing options...
Mikijs Posted May 23, 2008 Author Report Share Posted May 23, 2008 (edited) nea nesmu :) man seit ta uzrakstijas :) bet koda ir parts Edited May 23, 2008 by Mikijs Link to comment Share on other sites More sharing options...
Aleksejs Posted May 23, 2008 Report Share Posted May 23, 2008 Nu, tad nezinu. Es darītu tā, ka izechotu: print_r($struktura); Varbūt tas radītu pārdomas Link to comment Share on other sites More sharing options...
Mikijs Posted May 23, 2008 Author Report Share 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 ? ;/ Link to comment Share on other sites More sharing options...
Mikijs Posted May 23, 2008 Author Report Share 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 Link to comment Share on other sites More sharing options...
Aleksejs Posted May 23, 2008 Report Share Posted May 23, 2008 Šitā: $struktura->dparameters[0]->value; ? Link to comment Share on other sites More sharing options...
Mikijs Posted May 23, 2008 Author Report Share Posted May 23, 2008 ja bus ta :) paldies ;) Link to comment Share on other sites More sharing options...
Recommended Posts