Pop\Mail\Queue::__toString PHP Method

__toString() public method

Build the to string
public __toString ( ) : string
return string
    public function __toString()
    {
        $to = array();
        foreach ($this as $rcpt) {
            $to[] = isset($rcpt['name']) ? $rcpt['name'] . " <" . $rcpt['email'] . ">" : $rcpt['email'];
        }
        return implode(', ', $to);
    }