Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

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

$
0
0
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

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>