Hello,

Drupal seems to work fine with the module however, whenever it actually tries to send email, it screws up. I've put PHPmailer in smtp/phpmailer but I still get this problem:

Fatal error: require_once() [function.require]: Failed opening required 'modules/color/smtp/phpmailer/class.phpmailer.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\modules\color\smtp\smtp.module on line 246

I've tried 2.3version of PHPmailer and 2.2.1, is there a fix around this? I have the openssl module enabled in PHP as well, I have no idea what's going on.

Thanks in advance!

Comments

oadaeh’s picture

Component: Code » Miscellaneous
Assigned: jaku78 » Unassigned
Priority: Critical » Normal

It's looking in [drupal-root]/modules/color/smtp for your phpmailer directory, not [drupal-root]/sites/all/modules/smtp (or where ever you normally install contrib modules). Verify you only have one copy of SMTP installed anywhere (especially not in [drupal-root]/modules/color).

jaku78’s picture

Thanks for your help mate.

Worked perfectly!

oadaeh’s picture

Status: Active » Closed (fixed)
Anonymous’s picture

Anonymous’s picture

Status: Closed (fixed) » Active

Hi I'm getting the same message as follows when users try to create a new account at: www.peterphrastus.com

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/petejor3/public_html/drupal/sites/all/modules/smtp/smtp.module on line 246

The path to my live site class.phpmailer.php is this when I look at it in cPanel:

/public_html/drupal/sites/all/modules/smtp/phpMailer/class.phpmailer.php

I checked to make sure there is no other copy of SMTP anywhere and that all modules are installed.

The live site is a copy of my development where the code works. The dev site root on Windows is:

//localhost/drupal/

Now I have to apologise for my lack of know-how regarding the "root" concept on the linux site versus the dev site. I use Pathologic to remove "http://localhost/drupal" from adresses on the live site and that works fine.

Somehow I think there is a concept I am missing when it comes to getting the path to the SMTP module correct on the live site. Can someone please assist.

Many thanks.

oadaeh’s picture

Try renaming the directory from "phpMailer" to "phpmailer". Some systems (like Windows -- I don't know about cPanel) don't cooperate when you're just making a case change, and so you may have to make it a two step processes, like "phpMailer" to "phpmailer0", and then "phpmailer0" to "phpmailer". Try just changing the "M" to an "m", first.

Oh, and FYI, you didn't need to move the contents of your first post to your second one just to change the status. You could have just changed that in the second one w/o any text, or with only something like, "Changing the status".

Anonymous’s picture

Thank you so much oadaeh.

I've been using "W"indows way too long. This file naming issue is now burned in my memory for ever.

And thanks also for the info on using the forums. That will help in the future as well.
What is the etiquete on changing the status? Should I have closed it with this post?

oadaeh’s picture

Status: Active » Closed (fixed)

Normally, if your problem is solved, then you would mark the issue as "fixed". The project module automatically marks it as "closed" after two weeks of no activity. In this case, however, you could just mark it as "closed" (which I have done), since it was previously closed and re-opened.