Hy all!!!
I'm trying to send an e-mail to 315 persons from a script.
First of all I had problems 'cause I couldn't send the
e-mail to more than 105 posts é ???.
So I tried to send 4 (3x100+1x15) e-mails from the same
Script BUT I couldn't,......
My script only opens the last e-mail ..........
what about the others???????
The code might help you more than my horrible English....
I'm completely desperado........I need some help pleaseeeee
Thanks on advance....
<script>
function avisa(parametros)
{
var num=parametros.length;
var cientos=num/100;
var flag=0;
while(flag<cientos)
{
var to="";
var aux0=flag*100;
var pepe=cientos-flag;
if(pepe>=1)
{
var aux=100*(flag+1);
}
else
{
var aux=aux0+num%100;
}
for (cont=aux0;cont<aux;cont++)
{
to=to+parametros[cont]+"@tempe.es;";
}
var texto="Here is the text of the e-mail.";
var string="mailto:"+to+" subject=Example.&body= "+texto;
window.location=string;
flag++;
}
}
</script>
I'm trying to send an e-mail to 315 persons from a script.
First of all I had problems 'cause I couldn't send the
e-mail to more than 105 posts é ???.
So I tried to send 4 (3x100+1x15) e-mails from the same
Script BUT I couldn't,......
My script only opens the last e-mail ..........
what about the others???????
The code might help you more than my horrible English....
I'm completely desperado........I need some help pleaseeeee
Thanks on advance....
<script>
function avisa(parametros)
{
var num=parametros.length;
var cientos=num/100;
var flag=0;
while(flag<cientos)
{
var to="";
var aux0=flag*100;
var pepe=cientos-flag;
if(pepe>=1)
{
var aux=100*(flag+1);
}
else
{
var aux=aux0+num%100;
}
for (cont=aux0;cont<aux;cont++)
{
to=to+parametros[cont]+"@tempe.es;";
}
var texto="Here is the text of the e-mail.";
var string="mailto:"+to+" subject=Example.&body= "+texto;
window.location=string;
flag++;
}
}
</script>