Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/11/2010, 22:13
Avatar de xalupeao
xalupeao
 
Fecha de Ingreso: mayo-2008
Ubicación: Santiago, Chile
Mensajes: 749
Antigüedad: 16 años
Puntos: 12
Respuesta: Problemas con cURL

Código PHP:
Ver original
  1. <?php
  2. $datos['de'] = urlencode("[email protected]");
  3. $datos["fono"] = '62272851';
  4. $datos["subj"] = urlencode("una sujeto ");
  5. $datos["nombre"] = urlencode("Gonzalo");
  6. $datos["rut"] = "17672152";
  7. $datos["dv"] = "9";
  8. $datos["mensaje"] = urlencode("mensaje...");
  9. $datos["auto"] = "1555721";
  10. $datos["cli"] = "0";
  11. $ch = curl_init();
  12. curl_setopt($ch, CURLOPT_VERBOSE, 0);
  13. curl_setopt($ch, CURLOPT_URL, "http://www.chileautos.cl/comunic2.asp?aut=1555721");
  14. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  15. curl_setopt($ch, CURLOPT_POST, 1);
  16. curl_setopt($ch, CURLOPT_POSTFIELDS, $datos);
  17. curl_setopt($ch, CURLOPT_FAILONERROR, 0);
  18. curl_setopt($ch, CURLOPT_HEADER, 1);
  19. curl_setopt($ch, CURLOPT_COOKIEFILE, 1);
  20. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  21.  
  22.  
  23.  
  24. $response = curl_exec($ch);
  25. echo "<pre>".$response."</pre>";
  26. ?>

bueno al dejarlo asi sale efectivamente que se envio ... pero no me llega ningun mail (como deberia ocurrir) ... alguien lo probo?

gracias por la ayuda =D
__________________
Hosting en Chile en Silverhost - La solución en Hosting en Chile.