Zend_Mail_Storage_Pop3 cannot display data

Source: Internet
Author: User
Zend_Mail_Storage_Pop3 cannot display data? $ Pop & nbsp ;=& nbsp; new & nbsp; Zend_Mail_Storage_Pop3 (array ('host' = & gt; 'smtp .163.com ', & nbsp; & nbsp; Zend_Mail_Storage_Pop3 cannot display data?

$pop = new Zend_Mail_Storage_Pop3(array('host'=>'smtp.163.com',
                                        'user'=>'aaa@163.com',
                                        'password'=>'aaa',
                                        'port'=>465,
                                        'ssl'=>'ssl'));

echo $pop->countMessages().' aaaaa
';
foreach ($pop as $message) {
            echo "Mail from '{$message->from}': {$message->subject}\n";
        }
        echo 'ccccccc
';



With this code, why can't I promise anything, and no errors will be reported during execution?
The one who used this item gave me a prompt.
------ Solution --------------------
Port error
Port 163 is: 25
------ Solution --------------------
If you change port to 25, the following message will be reported:

Application error
Exception information:
Message: last request failed 

If the ssl attribute is not added, will the error be reported?

------ Solution --------------------
No one else will,
Only by yourself can you help yourself ....
------ Solution --------------------
The landlord you solve the problem... I also have zend mail... there are a lot of questions to ask? chendcwf@126.com
------ Solution --------------------
Reference:
The landlord you solve the problem... I also have zend mail... there are a lot of questions to ask? chendcwf@126.com

No solution
Depressed. I haven't solved the tragedy for a long time.

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.