Re: Enviar Attach via PHP
| From: | Tom Rogers | Date: | Fri, 23 Jul 2004 00:57:14 +0000 |
| Subject: | Re: Enviar Attach via PHP | ||
| References: | 1 2 | Groups: | php.windows php.windows |
| Request: | Send a blank email to php-windows+get-24250@lists.php.net to get a copy of this message | ||
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.