I have installed the PEAR Mail MIME package and verified it on the command line. I have verified that the directory is in the path, and that I can create a mime message using php from the command line.
I have created a Drupal page with just phpinfo() in it and the path is in include_path.
But when I try to enable the module Mail MIME 7.x-2.6, I get the following error:
The required PEAR package Mail_Mime could not be found. The Mail MIME module has been disabled to avoid further errors. Please download and install the Mail_Mime package, then visit your Modules page to re-enable the Mail MIME module.
For now I'm assuming this is something I'm doing wrong, but I don't know what else to do. Any suggestions would be helpful.
Comments
Comment #1
pillarsdotnet commentedWhat version of the PEAR Mail_Mime package do you have installed? The Mail MIME module requires 1.6.1 or later.
Specifically, the following include files are required:
Mail/mime.phpMail/mimeDecode.phpMail/mimePart.phpPEAR.phpPEAR5.phpComment #2
drupjab commentedI have version 1.8.1 installed (latest stable release).
I see mime.php and mimePart.php in my local PEAR directory, but no the others.
Does that make any sense?
thanks,
J
Comment #3
pillarsdotnet commentedNo.
The files
mime.phpandmimePart.phpshould not be in your PEAR directory; they should be in theMail/subdirectory of your PEAR directory.All of the files I listed are required. In other words the following test code should run with no errors:
Comment #4
drupjab commentedSo I installed the "include" module (http://drupal.org/project/include) and re-installed Mail MIME and got this message:
Created include Mail/mimeDecode.php.
Created include PEAR5.php.
Seems to have worked. Will report back after more testing and close the issue if everything works.
Comment #5
pillarsdotnet commentedIf you look in your "files" directory, you should see a subdirectory called "include".
Copy everything from the "include" subdirectory to your PEAR directory, and you should be able to uninstall the "include" module without any problems.
I will update the module documentation to clarify the exact file dependencies.
Comment #6
pillarsdotnet commentedFixed in development, and also on the project page.
I have revised the Requirement section as follows. Please let me know if you can think of any further improvements.
Comment #7
drupjab commentedI think that looks great. Thanks for all your help. Let me know if I can return the favor.
Comment #8
vacho commentedI have solved this whit "Include" module.
This module has created the files:
mime.php
mimeDecode.php
mimePart.php
in the path: sites/default/files/include/Mail
Comment #10
danielgmc commentedJust FYI in case anyone else has this problem.
My system was missing Mail/mimeDecode.php even after running
pear install -a Mail_Mime.I also had to run
pear install -a Mail_mimeDecode.Then I could enable this module successfully.
Comment #11
pillarsdotnet commentedI'm rewriting MailMime to avoid the PEAR dependency. See #1333310: Rewrite and fork PEAR classes instead of subclassing.
Comment #12
tomfilepp commentedthanks for the tip, been googling for 20 minutes trying to figure out why this module was missing.