Pop\Mail\Queue::__construct PHP Method

__construct() public method

Instantiate the mail queue object.
public __construct ( mixed $email = null, string $name = null ) : Queue
$email mixed
$name string
return Queue
    public function __construct($email = null, $name = null)
    {
        if (null !== $email) {
            if (is_array($email)) {
                $this->addRecipients($email);
            } else {
                $this->add($email, $name);
            }
        }
    }