method deleteAllEmails documentation in bbn\Appui\Mailing

Deletes all the emails ready or cancelled relative to the given id_mailing.

function(string $id_mailing) { $success = null; $emails = $this->db->rselectAll('bbn_emails', [], ['id_mailing' => $id_mailing]); if (!empty($emails)) { $n = 0; foreach ($emails as $e){ if (($e['status'] === 'ready') || ($e['status'] === 'cancelled')) { if ($this->db->delete('bbn_emails', ['id' => $e['id']])) { $n++; } } } $success = $n; } return $success; }

Deletes all the emails ready or cancelled relative to the given id_mailing. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.