Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/06/2011, 16:53
maroto20
 
Fecha de Ingreso: junio-2011
Ubicación: San Jose, Costa Rica
Mensajes: 52
Antigüedad: 12 años, 9 meses
Puntos: 1
Respuesta: Adjuntar Archivo a un correo desde un Form

Amigo lo que hice fue lo siguiente:



<?php
//define the receiver of the email
$to = '[email protected]';
//define the subject of the email
$subject = 'Test email';
//define the message to be sent. Each line should be separated with \n
$message = "Hello World!\n\nThis is my first mail.";
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: [email protected]\r\nReply-To: [email protected]";
//send the email
$Nombre = $_POST['Nombre'];
$SegundoNombre = $_POST['SegundoNombre'];
$PrimerApellido = $_POST['PrimerApellido'];
$SegundoApellido = $_POST['SegundoApellido'];
$NúmerodeIdentificación = $_POST['NúmerodeIdentificación'];
$TipodeIdentificación = $_POST['TipodeIdentificación'];
$Permisodeconducir = $_POST['Permisodeconducir'];
$Nacionalidad = $_POST['Nacionalidad'];
$PaísdeResidencia = $_POST['PaísdeResidencia'];
$CiudaddeResidencia = $_POST['CiudaddeResidencia'];
$email = $_POST['email'];
$telefono1 = $_POST['telefono1'];
$telefono2 = $_POST['telefono2'];
$GradoAcadémico = $_POST['GradoAcadémico'];
$OtroEstudio = $_POST['OtroEstudio'];
$PrimerIdioma1 = $_POST['PrimerIdioma1'];
$PrimerIdioma2 = $_POST['PrimerIdioma2'];
$SegundoIdioma1 = $_POST['SegundoIdioma1'];
$SegundoIdioma2 = $_POST['SegundoIdioma2'];
$TercerIdioma1 = $_POST['TercerIdioma1'];
$TercerIdioma2 = $_POST['TercerIdioma2'];
$Herramienta0 = $_POST['Herramienta1'];
$Herramienta1 = $_POST['Herramienta2'];
$Herramienta2 = $_POST['Herramienta3'];
$Herramienta3 = $_POST['Herramienta4'];
$a1 = $_POST['Recepción'];
$a2 = $_POST['ÁreaAdministrativa'];
$a3 = $_POST['Proveeduría'];
$a4 = $_POST['Logística'];
$a5 = $_POST['Contabilidad'];
$a6 = $_POST['Planillas'];
$a7 = $_POST['PresupuestosElectromecánicos'];
$a8 = $_POST['BodegasElectromecánicas'];
$a9 = $_POST['RecursosHumanos'];
$a10 = $_POST['IngenieríaElectromecánica'];
$a11 = $_POST['Mensajería'];
$a12 = $_POST['Electricistas'];
$a13 = $_POST['Fontaneros'];
$ExperienciaLaboral = $_POST['ExperienciaLaboral'];
$introduccion = $_POST['introduccion'];
$file = $_POST['file'];

//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed"
echo $mail_sent ? "Mail sent" : "Mail failed";
?>


Y no me sirvió, solo me llego Hello World!\n\nThis is my first mail.