Re: Enviar Attach via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GastóN Quiroga wrote:
Gracias Gerardo por tu respuesta...

estuve investigando mas a fondo el problema y saqué algunas conclusiones:

La línea de la clase es

$a-> Attach(<archivo>,<tipo_arch>, <modo_attach>)

donde <archivo> es el nombre del archivo con el fullpath, <tipo_arch> es el tipo de
attach (text/plain, application/rtf, etc) y <modo_attach> es la forma en que pega el attach al mensaje (opcional).

mi problema es que cuando posteo el form (POST) (cuya variable del campo FILE es
"archivo")

envío lo siguiente

$a-> Attach($_FILE['archivo']['name'],$_FILE['archivo']['type'])


donde $_FILE['archivo']['name'] es, por ejemplo, foo.txt, cuando en realidad debería ser c:\windows\escritorio\foo.txt. Creo que el problema está en que no le puedo pasar el PATH completo y por eso no lo puedo envíar.


any advice??

gracias nuevamente !

You need to use $_FILES["archivo"]["tmp_name"] if you haven't moved the file.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux