Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Mailer

Status
Not open for further replies.

Bertiethedog

Programmer
Feb 8, 2007
118
GB
Now I am stuck

I Cant see anything wrong with the code below, I have checked all the paths are correct and I have tried removing the end "/" off each path.
running phpinfo() shows the required path

I have spent hours researching & I am sure someone will recognise their code snippets.

Thanks in advance

Richard




Code:
error_reporting(E_ALL);
set_include_path(".;../phpmailer/language/;../phpmailer/");
include_once('class.phpmailer.php');
if (!class_exists("phpmailer")) {require_once("class.phpmailer.php");}

include_once('../phpmailer/language/phpmailer.lang-en.php');
echo 'L13';



Warning: mxcl_mail(class.phpmailer.php) [function.mxcl-mail]: failed to open stream: No such file or directory in /home/clients/rcldev2/html/speedingbullet/function.php on line 6

Warning: mxcl_mail() [function.include]: Failed opening 'class.phpmailer.php' for inclusion (include_path='.;../phpmailer/language/;../phpmailer/') in /home/clients/rcldev2/html/speedingbullet/function.php on line 6

Warning: mxcl_mail(class.phpmailer.php) [function.mxcl-mail]: failed to open stream: No such file or directory in /home/clients/rcldev2/html/speedingbullet/function.php on line 7

Fatal error: mxcl_mail() [function.require]: Failed opening required 'class.phpmailer.php' (include_path='.;../phpmailer/language/;../phpmailer/') in /home/clients/rcldev2/html/speedingbullet/function.php on line 7
 
try this line instead
Code:
set_include_path( '.' 
                  . PATH_SEPARATOR . 
                  '../phpmailer/language/'
                  . PATH_SEPARATOR . 
                  '../phpmailer/');
 
Thanks, I had put quotes around the whole string not the individual items.

On reflection it should have worked but I guess the version of PHP on the server was expecting something different as a path seperatot

Thanks again for your invaluable help


Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top