Jump to content

Warning: require_once(Mail/mime.php)


vani sri

Recommended Posts

Hi all,

 

I am using SMTP mail function. Mail sent successfully. When i try to include the MIME function i got the error.

Warning: require_once(Mail/mime.php) [function.require-once]: failed to open stream: No such file or directory in /home/viewtube/public_html/mail.php on line 3

 

How can i fix this error? Hope any one help me.

 

Regards,

vani

 

 

Link to comment
Share on other sites

Having libraries installed in PEAR is fine, but the Pear library must be in the php include path.  Only you can determine if the include path has been set so that the scripts can be found. 

 

You can set the include path in the php.ini file, or if you don't have access to that on your server, you can set it programatically using ini_set().

 

In the php.ini -> check include_path=

 

In a script set it with ->  ini_set('include_path', '.: etc');

 

 

Link to comment
Share on other sites

Hi gizmola,

 

Thanks for ur reply.

I have no experience with this type of error.In my .ini file , i found the path

.:/usr/lib/php:/usr/local/lib/php

In that path i saw PEAR folder also. Then why this functions are not called properly. I have no idea with this error pls kindly give me the instruction how to overcome from this pbm.

 

Regards,

vani

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.