Posted by himtuna on September 20, 2008 at 5:05pm
Jump to:
| Project: | SMTP Authentication Support |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello ,
I got this error:Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/punjabne/public_html/sites/all/modules/packweb_order/packweb_order.module on line 2
i have changed aur server from window to linux and uploaded this file in to the new server then it gives this error please help me:
Thanks
Raj Dharmendra
Comments
#1
Start by reading the INSTALL.txt and README.txt files and following the directions. Then, if you're still having problems, read through this thread: http://drupal.org/node/293860.
#2
hay
i have the same problem only on windows
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.;C:\php5\pear') in C:\wamp\www\sites\all\modules\smtp\smtp.module on line 246
i don t know what to do and i do not unterstant this text files
well im only 15^^ and my php skills arent really good....
would someone explain me how i get my mail server intigrated
I got an mail sever but i cant give it to my drupal page..
I ONLY WANT TU USE THE EMAIL FUNKTION TO GIVE PEOPEL THE CHANCE TO BECOME A MEMBER OF MY HOMEPAGE
#3
From INSTALL.txt:
2. Download the PHPMailer package (the URL is listed in REQUIREMENTS sectionof the README.txt file) and place it in a directory named "phpmailer" in
your <drupal-root>/sites/all/modules/smtp directory.
From README.txt:
* The PHPMailer package from Codeworx Tech., which can be found here:http://sourceforge.net/project/showfiles.php?group_id=26031
Click on the "Download" link for either the Package "phpmailer" or "phpmailer for php5/6" (your choice, based on which version of PHP you have installed).
Don't use that as an excuse for failure. I'm less likely to help you. He's 12 (or maybe 13 by now): http://drupal.org/user/47566. You don't need PHP skills to download and place the files in the correct location.
What about them don't you understand? If it will help me improve them, I'll incorporate the changes.
#4
I ran into this same problem! In despite I had read the readme and the INSTALL files.
The problem occurred because the default folder zipped in the phpMailer dist was called phpMailler_v2.3 and not just phpmailer, as stated in the INSTALL.txt. So, I needed to rename it to make it work. Of course it was my mistake, but since more than one person got stuck in the same error, it could be helpful to give a tip about it in the docs.
Best Wishes,
Drac
#5
okay.. got that package but the same error..
maybe its cause i havn t got pear..??
(include_path='.;C:\php5\pear')
#6
@drac.sa.evas: I was clear about the name of the folder for a reason. I don't believe I need to go into more detail than I did, and I'm not going to add more verbage in an attempt to account for every possible way that someone might get it wrong (which are many and varied). I specified exactly what to call the folder, and that is "phpmailer" and not "phpMailer", "PHPMAILER", or anything else.
In any variation of Unix, including Linux and the latest Macs (since, I believe OS 9, but I'm not sure on that), the case of the names matter, so it has to be exactly the same. Also, any time you extract any file, you can't assume the name of the new folder, or if there even is a folder. If you don't take the time to check the name folder, that's your problem, not mine.
@djrazr: No, that means you do have PEAR installed. Otherwise, it wouldn't be in the include path. You need to extract the phpMailer package into a directory named "phpmailer" (case matters -- make sure it's all lower case and doesn't have any other characters in the name of the directory), and that directory needs to be in the SMTP Authentication Support module's directory.
#7
For the people,
There is no bug in the module, Nothing is wrong with the code.
The only problem is that you are not able to put the phpmailer into the right directory.
Please try every hit before creating and issue or post, that way you are not only going to save your time and increase your level of understanding(Be Bold to try new things) and gonna save our time in dealing with some other important issues.
And if you still have problem, don't you hesitate, its your right to ask and its our duty to get your problems sorted.
EDIT: I just didn't know that I create this issue and giving lectures to people for discovering and trying new things before putting up questions, looking back in old time is so funny.
And that is what I have learned with this great community,
Love Drupal!
#8
I "followed the instructions" twice and failed, so you are all not alone :-)
To get it working I had to visit http://sourceforge.net/project/showfiles.php?group_id=26031 and NOT download the PHPMailer-ML file at the top. Instead scroll down to the file for your PHP version (mentioned in post #3), download that and extract it into a "phpmailer" folder in smtp.
Hope this helps,
Jack
#9
Thank you JackLynch! I also had to download the one down the page for php5 instead of the more obvious link on the top.
#10
#11
JackLynch, thank you! These instructions should be mentioned in install.txt
#12
Good Day,
I fell into this same usability trap when trying to install phpmailer. I followed the directions in INSTALL.txt but direction 2. was holding me up, first of all because I had to open up another file to get to the URL, and secondly because the big green prominent "DOWNLOAD HERE" link that is at the top of the referenced URL is not the droid we are looking for....
2. Download the PHPMailer package (the URL is listed in REQUIREMENTS section
of the README.txt file) and place it in a directory named "phpmailer" in
your /sites/all/modules/smtp directory.
The above direction should read:
2. Download the PHPMailer package at:
http://sourceforge.net/project/showfiles.php?group_id=26031
Scroll down to find the phpmailer for php5_6 or php4 version appropriate for you and place it in a directory named "phpmailer" in your /sites/all/modules/smtp directory.
I have another question. Can it go into /sites/all/libraries/phpmailer instead? Then I wouldn't run into this everytime I hand-updated SMTP, a fine module might I add :D
#13
you need to change "PHPMailer" to "phpmailer", in Windows OS it's OK, but in other OS may cause file can't find
#14
Thank you very Much.I'm new to drupal, and So I followed exactly whay yiu said, and evrything was fine.Really thanks!
#15
While the above discussion is valuable and has certainly helped people, I don't think it's the module developer's fault when a third-party library has moved their link or is flashily touting a new version. It says very specifically on the project page that only PHPMailer up to version 2.2.1 is currently supported (though I've gotten 2.3 and 5.1 to work, I'm wondering if that might be the source of some of my intermittent problems).
That being said, I'm sure the maintainers would not mind patches submitted for updating the documentation!
Re: Libraries API implementation, a patch has been developed at #541942: Move PHPMailer out of the module folder, check for class already defined and hopefully will be included with the next release.
#16
In relation to post #12 above, again, it's important to not just download the package entitled: varinsert_for_SPAW2.
Instead, on the sourceforge download page, click the 'View all files' link next to the green 'Download Now!' link. This will show you a listing of particular files and directories associated with PHPMailer. In my case, it was 'PHPMailer_v5.1.zip', found under 'phpmailer for php5_6' that I needed to download and install for Drupal 6.19.
My module directory structure for this setup looks like this:
sites/all/modules/smtp (has all smtp module files in it: CHANGELOG.txt, INSTALL.txt, etc, etc)
sites/all/modules/smtp/phpmailer (has unzipped contents from PHPMailer_v5.1.zip)
Remember you also need a valid email address on your server to use SMTP on a Drupal site. Send a test email to yourself, which is the last option on the SMTP Authentication module setup page in Drupal admin.