Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2005, 02:26
Avatar de elangelcaido
elangelcaido
 
Fecha de Ingreso: septiembre-2003
Ubicación: Oviedo
Mensajes: 1.068
Antigüedad: 20 años, 7 meses
Puntos: 4
Podria ser algo asi:
Código PHP:
<?php 
$sfrom
=""//cuenta que envia
$sdestinatario=""//cuenta destino
$ssubject=""//subject
$shtml=""//mensaje
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";

$auxiliar="";
if(
strlen($shtml)>500){
    
$numCaracteres=strlen($shtml);
    
$inicio=0;
    
$fin=500;
    while(
$numCaracteres>=500){
        
$auxiliar=substr($shtml,$inicio,$fin);
        
mail($sdestinatario,$ssubject,$auxiliar,$sheader);
        
$numCaracteres-=500;
        
$fin+=500;
        
$inicio+=500;
    }
}else{
    
mail($sdestinatario,$ssubject,$shtml,$sheader);
}
?>
No lo he probado mucho pero creo que funcionaria.... y seguro que hay una forma mejor de hacerlo.
__________________
Ta Luego! Al final sólo puede quedar uno...
________
lukos.org