Needs review
Project:
Zend Framework
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Apr 2008 at 21:35 UTC
Updated:
6 Nov 2010 at 08:05 UTC
Hello,
I am a new Drupal user and I hope I'm submitting the error to the right place.
I set up zend_mail to use SMTP and not sendmail.
When I use the contact form, I am getting the following error message:
Fatal error: Call to undefined method Zend_Mail_Transport_Smtp::connect() in /<my www path>/modules/zend/zend_mail/zend_mail.inc on line 19
I am using the latest Zend Framework Module version 6.x-1.x-dev and using Zend Framework version 1.5.1
I don't think there is a connect/disconnect method available in Zend_Mail_Transport_Smtp in the new framework, or am i wrong?
However, I got around it with a quick fix, please see attached file.
You can replace it with your old zend_mail.inc for a quick fix =)
Thanks,
osolabs
| Comment | File | Size | Author |
|---|---|---|---|
| zend_mail.zip | 619 bytes | osolabs |
Comments
Comment #1
osolabs commentedHello,
I am a new Drupal user and I hope I'm submitting the error to the right place.
I set up zend_mail to use SMTP and not sendmail.
When I use the contact form, I am getting the following error message:
Fatal error: Call to undefined method Zend_Mail_Transport_Smtp::connect() in //modules/zend/zend_mail/zend_mail.inc on line 19
I am using the latest Zend Framework Module version 6.x-1.x-dev and using Zend Framework version 1.5.1
I don't think there is a connect/disconnect method available in Zend_Mail_Transport_Smtp in the new framework, or am i wrong?
However, I got around it with a quick fix, please see attached file.
You can replace it with your old zend_mail.inc for a quick fix =)
Thanks,
osolabs
Comment #2
robloachHello! Thanks for the bug report. Does the Zend Framework module report that it is installed correctly?
Comment #3
jean-bernard.addor commentedI observed similar behavior with
Zend Framework 6.x-1.x-dev (2008-juin-02)
Zend Framework 1.6.2 (reported to be installed correctly in admin/reports/status)
i have not tried the patch
Comment #4
wildtang3nt commentedThis is still broken. Can't send emails with SMTP at all.
Comment #5
dave_h commentedTo get this module to work with later versions of ZF follow oslabs instructions:
Comment out the following lines in zend_mail.inc:
line 19:
$transport->connect();
line 38 - 40:
if ($transport) {
$transport->disconnect();
}
I needed SMTP authentication and mail attachments for a private project and i altered this module to be able do do both. If anyone is interested, contact me.