i need to send emails using implode,explode and for functions
this is my code:
$ab =implode(",", $dataset['mail']); //emails
$ac =implode(",", $dataset['html']); //message
$emails[]=$ab;
$hts[]=$ac;
for($i=0;$i<count($emails);$i++)
{
if(mail($emails[$i], $asunto, $hts[$i],$header)){
return true;
}
}
$ab and $ac with the implde will be like:
$ab='demo@gmail.com,demos@gmail.com,demo3@gmail.com,demo5@gmail.com';
$ac='hola,hi,gutentag';
so in for invoke mail function for each email and send too the message for each mail
how i can send it?
i need to the first mail comes with the first message and then...