public function setSMTPStream ($smtp = FALSE)
    {

        // If an SMTP parameter array has been passed

        if (is_array ($smtp))
        {

            // Set it

            $this->smtp	= $smtp;

        }

        // Else set details

        else
        {

            // SMTP Settings

            $this->smtp		= array (
                'server'		=> defined ('EMAIL_SERVER')? EMAIL_SERVER : NULL,
                'port'			=> defined ('EMAIL_PORT')? EMAIL_PORT : NULL,
                'domain'		=> defined ('EMAIL_DOMAIN')? EMAIL_DOMAIN : NULL,
                'username'		=> defined ('EMAIL_USERNAME')? EMAIL_USERNAME : NULL,
                'password'		=> defined ('EMAIL_PASSWORD')? EMAIL_PASSWORD : NULL
            );

        }

        // Set stream mode

        $this->_useStream	= TRUE;

        // Reset NL

        $this->_nl			= "\r\n";

    }