public function markEmailAsSent($id) {

        $emailMessage = $this->model->find($id);

        $emailMessage->sent = 1;

        return $emailMessage->save();
    }
public function markEmailAsSent($id) {

        $emailMessage = $this->model->find($id);

        $emailMessage->sent = 1;

        return $emailMessage->save();
    }
public function markEmailAsSent ( $ id ) { $ emailMessage = $ this -> model -> find ( $ id ) ; $ emailMessage -> sent = 1 ; return $ emailMessage -> save ( ) ; }
Mark an email as sent by setting the "sent" field to true

@param  int  $id    The "email_messages" table's ID field
@return void
Mark an email as sent by setting the sent field to true