Hi,

I am trying to sen mail via Zend_Mail_Transport_Smtp but what ever I tried I
could not make it work.
With following configuration it returns 5*.7.4 Unrecognized authentication
type  *error

$mailConfig = array (
                      'auth' => 'login'
                      'username' => $user,
                      'password' => $psw
                     );
$tr = new Zend_Mail_Transport_Smtp ( $host, $mailConfig );
Zend_Mail::setDefaultTransport ( $tr );

$mail = new Zend_Mail ( 'UTF-8' );
$mail->setHeaderEncoding ( Zend_Mime::ENCODING_BASE64 );
$mail->setBodyHtml ( $data ['message'] );
$mail->setFrom ( $data ['from'], $data ['fromName'] );
$mail->addTo ( $data ['to'] );
$mail->setSubject ( $data ['subject'] );
try {
            $mail->send ();
}.....

By the way mail server is Exchange 2010. Any ideas?

Reply via email to