Download & Extend

Zend_Mail module for SMTP transport mode broken

Project:Zend Framework
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:osolabs
Status:needs review

Issue Summary

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

AttachmentSize
zend_mail.zip619 bytes

Comments

#1

Priority:critical» normal
Status:active» needs review

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 //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

#2

Hello! Thanks for the bug report. Does the Zend Framework module report that it is installed correctly?

#3

I 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

#4

This is still broken. Can't send emails with SMTP at all.

#5

To 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.