Hi everyone.

I'm using phpmailer class to send mails from my website. But it's causing some errors after sending an email, namely:

my reservation page:

[CODE]echo '<body>';

ModuleLoader::load("Header");

ModuleLoader::load("Menu");

ModuleLoader::load("Reservation");

ModuleLoader::load("Promo");

AddonLoader::load("ContaktForm");

ModuleLoader::load("Footer");

echo '</body></html>';[/CODE]

php mailer is inside the Reservation module and after sending an email i get an error:
Fatal error: Class 'Promo' not found in C:\HTTP\CLASS\ModuleLoader.class.php on line 1528
which is workin properly when not using phpmailer.

Even if i delete Promo class it causes error to AddonLoader class so basically to everything that is below ModuleLoader::load("Reservation");

any help will be appreciated

best regards Raf

    Tough to tell without knowing what the ModuleLoader::load() method actually does. My first thought is that something in the Reservation class (phpMailer or not) is changing the current working directory, but that load() method is using relative paths.

      Write a Reply...