![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/11/2007, 05:06
|
| | Fecha de Ingreso: enero-2007
Mensajes: 23
Antigüedad: 18 años Puntos: 0 | |
archivo adjunto en email Quiero enviar un archivo de video adjunto, seleccionado desde un formulario, en un email, pero no se como añadirlo. Este es mi código
if ($_FILES['fichero']['type'] =='video/mpeg' || $_FILES['fichero']['type'] =='video/quicktime' || $_FILES['fichero']['type'] =='video/x-motion-jpeg' || $_FILES['fichero']['type'] =='video/avi' || $_FILES['fichero']['type'] =='video/x-ms-wmv' || $_FILES['fichero']['type'] =='video/flv')
{
$id2='v'.$id.'.'.$tipo;
$url="http://mecaguenlahostia.ueuo.com/subir/$id2";
$texto=$HTTP_POST_VARS['titulo'];
$texto.=$HTTP_POST_VARS['texto'];
$texto.="<a href=\"$url\">$url</a><br>";
$cabecera = "From:$micorreo \nReply-To:$micorreo \nX-Mailer: PHP/" . phpversion()."\n"; //Remitente y reply
$cabecera .= "Content-type: text/html; charset=iso-8859-1 \r\n"; //Formato html
mail($micorreo, 'Envio de video', $texto, $cabecera);
} |