Jump to content
php.lv forumi

Mail Headers


Mikijs

Recommended Posts

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
Link to comment
Share on other sites

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

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
Link to comment
Share on other sites

×
×
  • Create New...