Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Opening a local storage

Mbox and Maildir are the two supported formats for local mail storages, both in their most simple formats.

If you want to read from a Mbox file you only need to give the filename to the constructor of Zend_Mail_Storage_Mbox:

= new Zend_Mail_Storage_Mbox(array('filename' =>

Maildir is very similar but needs a dirname:

= new Zend_Mail_Storage_Maildir(array('dirname' =>

Both constructors throw a Zend_Mail_Exception if the storage can't be read.

Zend Framework