Hi All,

We're having a bit of a problem here with Zend_Mail when sending mail with a pdf attachment (it works fine when there's no attachment).

We get the following warning:

PHP Warning: Zend_Mail_Protocol_Abstract::require_once(Zend/Mail/ Protocol/Exception.php) [<a href='function.Zend-Mail-Protocol-Abstract- require-once'>function.Zend-Mail-Protocol-Abstract-require-once</a>]: failed to open stream: No such file or directory in /Library/WebServer/ Documents/CBDB/library/Zend/Mail/Protocol/Abstract.php on line 275

followed by ...

PHP Fatal error: Zend_Mail_Protocol_Abstract::require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Zend/Mail/Protocol/Exception.php' (include_path='.:../library:../ application/models:../incubator/library:.:../library') in /Library/ WebServer/Documents/CBDB/library/Zend/Mail/Protocol/Abstract.php on line 275

and strangely enough, the mail gets sent!


The error doesn't tell alot, so I did a little more digging. The stack trace where the error is thrown is as follows:

#0 /Library/WebServer/Documents/CBDB/library/Zend/Mail/Protocol/ Smtp.php(387): Zend_Mail_Protocol_Abstract->_send('QUIT') #1 /Library/WebServer/Documents/CBDB/library/Zend/Mail/Transport/ Smtp.php(146): Zend_Mail_Protocol_Smtp->quit()
#2 [internal function]: Zend_Mail_Transport_Smtp->__destruct()
#3 {main}

which would seem to indicate that it's trying to send a smtp QUIT, after the connection is closed.

Needless to say, Zend is in the include path.

Anyone know how I should proceed with this?

(ZF 1.5.2, php 5.2.5, and the mail server is the standard OSX postfix install).

Any help appreciated,

Dermot.

Reply via email to