How can i send mails through the php script?? I am trying to do somthing like this:
for($k=0;$k<=$x->length-1;$k++)
{
for($l=0;$l<=$j-1;$l++)
The code (the inner most block) looks correct. Make sure your environment is setup correctly. http://ca3.php.net/manual/en/mail.setup.php
if it works sending emails to gmail then it should work fine sending emails to yahoo too
you may find that the issue is not the sending of the emails, but maybe yahoo is marking them as spam or blocking them at the gateway
i notice you are appending a comma to the end of the email address, what is the point of that ?
there may be other problems, are your loops correct, are they covering all the cases you expected.
are you sending thousands of emails ? can your mta handle the rate at which you are putting emails into the queue
is your script hitting max_execution time and stopping ?