public function clearAddresses() { foreach ($this->to as $to) { unset($this->all_recipients[strtolower($to[0])]); } $this->to = array(); $this->clearQueuedAddresses('to'); }
/** * @param bool $immediately * @return bool * @throws \phpmailerException */ public function send($immediately = true) { $salida = $this->mail->Send(); $this->mail->clearAddresses(); $this->mail->clearAttachments(); return $salida; }