Jump to content
php.lv forumi

Recommended Posts

Posted (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 by Mikijs
Posted

imap_fetcheaders merkis ir dabut

 

To, From, CC, BCC, subject bet nevis PART nosaukumu/atributus/enkondingus u.c

Posted

Gadījumā neesi nokļūdījies, uzrakstot part nevis parts?

$failanosaukums=$struktura->parts[0]->parametrs->value;

$failaatributs=$struktura->parts[0]->parametrs->attribute;

Posted

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 ? ;/

Posted (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 by Mikijs
×
×
  • Create New...