Why Am I Seeng The Word "aborted" In Command Console?

the output of the script is like




mail sent!

mail sent!

mail sent!

Aborted



here’s the code that produces that output with the aborted thing




    public function actionEmailDupes()

    {

        $sql = "SELECT CKAD.EMAIL, WM_CONCAT(DISTINCT CKUSERS.USERNAME) AS names FROM CKUSERS 

                  JOIN CKAD ON CKAD.EMAIL = CKUSERS.USEREMAILADR

                  WHERE UPPER(CKUSERS.USERNAME) <> UPPER(CKUSERS.USEREMAILADR) 

                  AND CKUSERS.USERSTATUS = 1 

                  AND CKAD.STATUS NOT IN (0, 4) 

                  AND CKAD.EXPIRYDATE > sysdate

                  GROUP BY CKAD.EMAIL";


        $resultSet = Yii::app()->db->createCommand($sql)->query();


        $emails = array();


        foreach($resultSet as $row) {		

            array_push($emails, $row['EMAIL']);

        }


        foreach($emails as $emailAddress){

            $this->sendEmail($emailAddress);

        }

    }



but when i tried only





    public function actionEmailDupes()

    {


     	$emails = array('sasori@test.com','sasori2@gmail.com','sasori3@gmail.com');

     	foreach($emails as $email){

     	$this->sendEmail($email);

     	}


     }



the output is




mail Sent!

mail Sent!

mail Sent!



there’s no “Aborted” word at all at the end of the output in the shell

i think you may change the function like




       $emails = array('sasori@test.com','sasori2@gmail.com','sasori3@gmail.com');

        foreach($emails as $email=>$value){

           $this->sendEmail($value);

        }

i am not sure but i hope it’s works…

i don’t see any difference from what you’ve quoted, you just showed the key