-- Serkan Temizel <[email protected]> wrote
(on Monday, 18 April 2011, 10:47 AM +0300):
> 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?

IIRC, Exchange uses SASL for authentication. I'm not sure if the SMTP
mail transport supports that currently; if it does, you'll need to alter
your configuration to utilize it.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to