cleanEmail example

return $this;
    }

    /** * @param array|string $to * * @return Email */
    public function setTo($to)
    {
        $to = $this->stringToArray($to);
        $to = $this->cleanEmail($to);

        if ($this->validate) {
            $this->validateEmail($to);
        }

        if ($this->getProtocol() !== 'mail') {
            $this->setHeader('To', implode(', ', $to));
        }

        $this->recipients = $to;

        
Home | Imprint | This part of the site doesn't use cookies.