Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/10/2009, 04:42
Avatar de neodani
neodani
 
Fecha de Ingreso: marzo-2007
Mensajes: 1.811
Antigüedad: 17 años, 2 meses
Puntos: 20
Respuesta: Problema al tratar adjuntos vía IMAP

Imprimo el array por si nos puede dar mas pistas...
print_r(imap_fetchstructure($imap, $message));

Desde el webmail de GMAIL
More then one part
Attachment found!Filename: color-palet.PNG


Código php:
Ver original
  1. stdClass Object
  2. (
  3.     [type] => 1
  4.     [encoding] => 0
  5.     [ifsubtype] => 1
  6.     [subtype] => MIXED
  7.     [ifdescription] => 0
  8.     [ifid] => 0
  9.     [ifdisposition] => 0
  10.     [ifdparameters] => 0
  11.     [ifparameters] => 1
  12.     [parameters] => Array
  13.         (
  14.             [0] => stdClass Object
  15.                 (
  16.                     [attribute] => BOUNDARY
  17.                     [value] => 00504502cfc1f9d5590476ab665f
  18.                 )
  19.  
  20.         )
  21.  
  22.     [parts] => Array
  23.         (
  24.             [0] => stdClass Object
  25.                 (
  26.                     [type] => 1
  27.                     [encoding] => 0
  28.                     [ifsubtype] => 1
  29.                     [subtype] => ALTERNATIVE
  30.                     [ifdescription] => 0
  31.                     [ifid] => 0
  32.                     [ifdisposition] => 0
  33.                     [ifdparameters] => 0
  34.                     [ifparameters] => 1
  35.                     [parameters] => Array
  36.                         (
  37.                             [0] => stdClass Object
  38.                                 (
  39.                                     [attribute] => BOUNDARY
  40.                                     [value] => 00504502cfc1f9d5510476ab665d
  41.                                 )
  42.  
  43.                         )
  44.  
  45.                     [parts] => Array
  46.                         (
  47.                             [0] => stdClass Object
  48.                                 (
  49.                                     [type] => 0
  50.                                     [encoding] => 0
  51.                                     [ifsubtype] => 1
  52.                                     [subtype] => PLAIN
  53.                                     [ifdescription] => 0
  54.                                     [ifid] => 0
  55.                                     [lines] => 1
  56.                                     [bytes] => 14
  57.                                     [ifdisposition] => 0
  58.                                     [ifdparameters] => 0
  59.                                     [ifparameters] => 1
  60.                                     [parameters] => Array
  61.                                         (
  62.                                             [0] => stdClass Object
  63.                                                 (
  64.                                                     [attribute] => CHARSET
  65.                                                     [value] => ISO-8859-1
  66.                                                 )
  67.  
  68.                                         )
  69.  
  70.                                 )
  71.  
  72.                             [1] => stdClass Object
  73.                                 (
  74.                                     [type] => 0
  75.                                     [encoding] => 0
  76.                                     [ifsubtype] => 1
  77.                                     [subtype] => HTML
  78.                                     [ifdescription] => 0
  79.                                     [ifid] => 0
  80.                                     [lines] => 1
  81.                                     [bytes] => 18
  82.                                     [ifdisposition] => 0
  83.                                     [ifdparameters] => 0
  84.                                     [ifparameters] => 1
  85.                                     [parameters] => Array
  86.                                         (
  87.                                             [0] => stdClass Object
  88.                                                 (
  89.                                                     [attribute] => CHARSET
  90.                                                     [value] => ISO-8859-1
  91.                                                 )
  92.  
  93.                                         )
  94.  
  95.                                 )
  96.  
  97.                         )
  98.  
  99.                 )
  100.  
  101.             [1] => stdClass Object
  102.                 (
  103.                     [type] => 5
  104.                     [encoding] => 3
  105.                     [ifsubtype] => 1
  106.                     [subtype] => PNG
  107.                     [ifdescription] => 0
  108.                     [ifid] => 0
  109.                     [bytes] => 504
  110.                     [ifdisposition] => 1
  111.                     [disposition] => ATTACHMENT
  112.                     [ifdparameters] => 1
  113.                     [dparameters] => Array
  114.                         (
  115.                             [0] => stdClass Object
  116.                                 (
  117.                                     [attribute] => FILENAME
  118.                                     [value] => color-palet.PNG
  119.                                 )
  120.  
  121.                         )
  122.  
  123.                     [ifparameters] => 1
  124.                     [parameters] => Array
  125.                         (
  126.                             [0] => stdClass Object
  127.                                 (
  128.                                     [attribute] => NAME
  129.                                     [value] => color-palet.PNG
  130.                                 )
  131.  
  132.                         )
  133.  
  134.                 )
  135.  
  136.         )
  137.  
  138. )

A continuación el otro...