Hi Juan
You don't need to connect/disconnect the Mail transport instance - it
does that by itself automatically. You can remove those methods.
Cheers
Hey :)
Actually I got this error using ZF 0.8.0 when I try to send an
email using Zend_Mail module.
Fatal error: Call to undefined method
Zend_Mail_Transport_Smtp::connect() in /home/jfalvarez/public_html/
userland/library/SendEmail.php on line 254
This line (254) have this:
$tr->connect();
All the method is this:
public function SendSMTPEmail()
{
require_once 'Zend/Mail/Transport/Smtp.php';
$tr = new Zend_Mail_Transport_Smtp('mail.my_server.com');
Zend_Mail::setDefaultTransport($tr);
$tr->connect();
$this->SendEmail();
$tr->disconnect();
}
I look into the Zend/Mail/Transport/Smtp.php and it doesnt have the
connect method but is extended to the Abstract class, so I dont
know what's wrong, Abstract.php doesnt have connect either, but
Protocol/Smtp.php have it. Somebody can help me on this ?
Thx
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com