Ask questions about Zend_Mail in Zendframework

Source: Internet
Author: User
I used the smtpserver of qq and gmail to forward Zend_Mail in Zendframework. why is there always an Authenticationfailed error ?, Gmail. I have never tried qq. zendmail is used as follows. I have tried PHPcode $ mailTr. could you tell me about Zend_Mail in Zend framework?
I use the smtp server of qq and gmail for forwarding. why is there always an Authentication failed error?

------ Solution --------------------

Gmail. Qq has never tried,
Use zendmail as follows:
PHP code
$ MailTransport = new Zend_Mail_Transport_Smtp ('smtp .gmail.com ', array ('auth' => 'login', 'username' => 'AAA @ gmail.com ', 'password' => 'ABC', 'SSL '=> 'SSL'); $ mail = new Zend_Mail ('utf-8'); $ mail-> setBodyHtml ('Hello xxx'); $ Mail-> setSubject ('XXX '); $ mail-> setFrom ('AAA @ gmail.com ', 'AAA '); $ mail-> addTo ('XXX @ qq.com ', 'Mr xxx'); $ mail-> send ($ mailTransport );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.