Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/07/2015, 09:01
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Enviar datos de un formulario usando PHP MAIL

Código PHP:
Ver original
  1. //se compone el mensaje
  2. require("class.phpmailer.php");
  3. $mail = new PHPMailer();
  4. //$mail->Host = "localhost";
  5. $mail->From = "EMAIL QUE EWNVIA";
  6. $mail->FromName = "NOMBRE DE QUIEN ENVIA";
  7. $mail->Subject = "ASUNTO";
  8. $mail->AddAddress("[email protected]", "DEPARTAMENTO");
  9. $body = $informacion;
  10. //$body .= "Nombre: $nombrern";
  11. //$body .= "Edad: $edadrn";
  12. $mail->Body = $body;
  13. //adjuntamos un archivo
  14. $mail->AddAttachment($upload['tmp_name'], $upload['name']);
  15. $mail->AddAttachment($upload2['tmp_name'], $upload2['name']);
  16. $mail->AddAttachment($upload3['tmp_name'], $upload3['name']);
  17. $mail->Send();

algo asi, yo lo uso y me funciona excelente
__________________
[email protected]
HITCEL