RE: [PHP-WIN] Enviar Attach via PHP
| From: | Gerardo Rojas | Date: | Thu, 22 Jul 2004 19:39:04 +0000 |
| Subject: | RE: [PHP-WIN] Enviar Attach via PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24246@lists.php.net to get a copy of this message | ||
Trata de, debug. Estas seguro que $_POST['arhchiv'] tiene el variable correcto? Si lo
tiene bien, entonces trate esto
$fullpath = $_POST['archiv'];
$m->Attach( $fullpath, "text/plain", "foo.txt");
--
Gerardo S. Rojas
mailto: grojas@strategicinc.com
-----Original Message-----
From: Gastón Quiroga [mailto:tango@datayarte.com.ar]
Sent: Thursday, July 22, 2004 1:46 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Enviar Attach via PHP
Hola,
es la primera vez que escribo a la lista, pero desde hace rato soy
participante. La consulta es la siguiente.
Yo estoy usando una class para enviar mails (con/sin attachments) via PHP que funciona
perfecto cuando no envío attachs o cuando en la linea de attach pongo
"ruta/nombre" del archivo ej:
$m->Attach( "c:/foo.txt", "text/plain", "foo.txt" );
pero cuando quiero que tome la variable de archivo desde un formulario POST no me lo
envía: ej:
$m->Attach ("$_POST['arhchiv']","text/plain",
"foo.txt");
tampoco funciona con $_FILE.
Seguramente estoy teniendo un error conceptual pero no logro saber cual, me
podrían ayudar ??
Gracias!!
Gastón.
8<--------------------------------------------
> On Thu, 22 Jul 2004 10:40:33 -0400, Jim MacDiarmid
> <jim.macdiarmid@comcast.net> wrote:
>>
>> [ Exerp from PHP manual pages on website:
>> "Warning Do not use Apache 2.0 and PHP in a production environment neither
>> on Unix nor on Windows." ]
>>
>> Can anyone tell me what this means? This is the only warning I see.
>>
> Please search the archives before posting, we were talking about this yesterday.
>
> http://marc.theaimsgroup.com/?l=php-general&m=109021837828927&w=2
> --
> DB_DataObject_FormBuilder - The database at your fingertips
> http://pear.php.net/package/DB_DataObject_FormBuilder
> paperCrane --Justin Patrin--
---------------------
12º Mandamiento Linux:
Sí adulterarás, y te harás compatible
con cuantos sistemas se dejen
---------------------
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php