Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/05/2013, 15:54
franjgg
 
Fecha de Ingreso: marzo-2007
Mensajes: 751
Antigüedad: 17 años, 1 mes
Puntos: 4
Respuesta: Como creo el pdf si me da error de header

Hola pateketrueke, gracias por tu atencion,

Me ha servido de mucho tu aclaracion, estoy usando este ejemplo para enviarlo por email:

http://prgm.spipu.net/php_pj_mail

La cosa es que me da error:

Warning: require_once(/home/esfera10/public_html/localizacion/dlc/pjmail\_simplemail\class.mail.php) [function.require-once]: failed to open stream: No such file or directory in /home/esfera10/public_html/localizacion/dlc/pjmail/pjmail.class.php on line 16


El codigo que uso es este:

Código PHP:
Ver original
  1. require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
  2.  
  3.  require_once(dirname(__FILE__).'/pjmail/_simplemail/class.mail.php');
  4.  
  5. $mail = new simplemail;
  6. $mail -> addrecipient('[email protected]','tetsuo');
  7. $mail -> addrecipient('[email protected]','plouf');
  8. $mail -> addbcc('[email protected]','plouf');
  9. $mail -> addfrom('[email protected]','gwbush');
  10. $mail -> addsubject('yyy yyy');
  11.  
  12. // le message text
  13. $mail -> text = 'plain text etc. etc. bla bla ...';
  14.  
  15. // le message format html
  16. $mail -> html ="bla<hr><img src=\"cid:doc1\" align=\"right\">blbala\n1\t2\t3\na\tb\tc";
  17.  
  18. // un attachement html ( image jointe afficher ds le html ).
  19. $mail -> addhtmlattachement ( 'KT400.gif','doc1', 'image/gif' );
  20.  
  21. // une piece jointe.
  22. $mail -> addattachement ( 'KT400.gif' );
  23.  
  24. if ( $mail -> sendmail() ) { echo "envoyé"; } else { echo "erreur"; echo $mail->error_log; } ?>
  25. ?>