Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/11/2005, 12:43
Avatar de flaconovato
flaconovato
 
Fecha de Ingreso: noviembre-2005
Ubicación: Bogota, Colombia
Mensajes: 137
Antigüedad: 18 años, 5 meses
Puntos: 1
De acuerdo colocar un attach dentro del envio del correo

Que pena que no te coloque el link de la pagina...

http://pear.php.net/manual/en/packag...me.example.php

Código PHP:
<?php
include('Mail.php');
include(
'Mail/mime.php');

$text 'Text version of email';
$html '<html><body>HTML version of email</body></html>';
$file '/home/richard/example.php';
$crlf "\n";
$hdrs = array(
              
'From'    => '[email protected]',
              
'Subject' => 'Test mime message'
              
);

$mime = new Mail_mime($crlf);

$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$mime->addAttachment($file'text/plain');

$body $mime->get();
$hdrs $mime->headers($hdrs);

$mail =& Mail::factory('mail');
$mail->send('postmaster@localhost'$hdrs$body);
?>