hi everyone,
I want to send the user an email from my website after they registeration in the site. I've installed PEAR package manually.(zipped the local pear package in my xammp and uploaded it in home/my_cpanel_account/php, then extracted it).
so there is PEAR folder in the php folder of my home directory now.
I want to use include_path in .htaccess file to access the module. so I added this line in the .htaccess of my webroot:
php_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/my_cpanel_account/php"
In the public_html directory there is a submit_user.php file that is going to send the email to the user.
I used include('mail.php'); in that file for sending email(on the line 39), but after running this file there are errors as below:
Warning: include(mail.php) [function.include]: failed to open stream: No such file or directory in /home/my_cpanel_account/public_html/submit_user.php on line 39
Warning: include(mail.php) [function.include]: failed to open stream: No such file or directory in /home/my_cpanel_account/public_html/submit_user.php on line 39
Warning: include() [function.include]: Failed opening 'mail.php' for inclusion (include_path='/home/malimoha/php:.:/usr/lib/php:/usr/local/lib/php') in /home/my_cpanel_account/public_html/submit_user.php on line 39
_____________________________________________________________
The mail.php file is in the Pear folder and also in the Pear/Mail.
I know there is something wrong with my include_path in .htaccess, or in include(mail). maybe both
By the way the Net_Smtp and Socket are installed in the cpanel.please tell me what to do.
thank you guys
I want to send the user an email from my website after they registeration in the site. I've installed PEAR package manually.(zipped the local pear package in my xammp and uploaded it in home/my_cpanel_account/php, then extracted it).
so there is PEAR folder in the php folder of my home directory now.
I want to use include_path in .htaccess file to access the module. so I added this line in the .htaccess of my webroot:
php_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/my_cpanel_account/php"
In the public_html directory there is a submit_user.php file that is going to send the email to the user.
I used include('mail.php'); in that file for sending email(on the line 39), but after running this file there are errors as below:
Warning: include(mail.php) [function.include]: failed to open stream: No such file or directory in /home/my_cpanel_account/public_html/submit_user.php on line 39
Warning: include(mail.php) [function.include]: failed to open stream: No such file or directory in /home/my_cpanel_account/public_html/submit_user.php on line 39
Warning: include() [function.include]: Failed opening 'mail.php' for inclusion (include_path='/home/malimoha/php:.:/usr/lib/php:/usr/local/lib/php') in /home/my_cpanel_account/public_html/submit_user.php on line 39
_____________________________________________________________
The mail.php file is in the Pear folder and also in the Pear/Mail.
I know there is something wrong with my include_path in .htaccess, or in include(mail). maybe both
By the way the Net_Smtp and Socket are installed in the cpanel.please tell me what to do.
thank you guys
Last edited by a moderator: