[horde] Question regarding creating a new class

Mike Poznecki poz_sa at yahoo.com
Tue Dec 5 12:32:36 UTC 2017


 

    On Tuesday, December 5, 2017, 5:15:58 AM CST, Ralf Lang <lang at b1-systems.de> wrote:  
 
 Am 04.12.2017 um 21:33 schrieb Mike Poznecki:
> Hi,
> I am trying to create a custom transport.  
> Here are the files that I have created/modified:
> created:/usr/share/pear/Horde/Mail/Transport/mySMTP.php
> modified:/var/www/horde/config/conf.xml
> 
> But when I try to select it in the config page, I receive an error that says:
>  
>  "mySMTP" driver (for Horde_Mail_Transport not found). [on line 85 of 
>  "/usr/share/pear/Horde/Core/Factory/Base.php"]
>  
>  What else must I do besides creating the file with my class and setting 
>  up the conf.xml with the name of my class (minus the Horde_Mail_Transport) ?
>  
>  Is there something else I need to do in order for Horde to know about my 
>  class?
>  
>  Thanks,
>  Michael.
> 
I think there are some cases where classnames are glued together using
ucfirst and it could be relevant for the autoloader if file name match
classname, cap sensitively. Making the file ...Mail/Transport/Mysmtp.php
or MySmtp and the class name Horde_Mail_Transport_Mysmtp extends...
could possibly be the right fix.

-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

Thanks, you have helped me a bunch.  It is now working.  Thank you again.









  


More information about the horde mailing list