Re: Using a class inside of a class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2008-12-12 at 13:21 -0800, Richard Kurth wrote:
> Can I use another class inside of a function in a class
> 
> 
> this function process_queue below is inside of a class called class mailer
> I want to use the phpMailer class inside of this function so I can send 
> email using smtp.
> Can this be done and is there any information out there on how to do this

Should be simple enough. Make sure you've included the file that holds
the phpMailer class (and any dependencies it may have) then just
instantiate an instance of the class... or am I missing the oint of the
question?

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux