the output of the script is like
here's the code that produces that output with the aborted thing
but when i tried only
the output is
there's no "Aborted" word at all at the end of the output in the shell
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