preferredAuthMethod = ezcMailSmtpTransport::AUTH_NTLM; $transport = new ezcMailSmtpTransport( 'mailhost.example.com', 'username', 'password', null, $options ); // The option can also be specified via the option property: $transport->options->preferredAuthMethod = ezcMailSmtpTransport::AUTH_NTLM; // Use the SMTP transport to send the created mail object $transport->send( $mail ); ?>