PhpMailer problem
Posted: Sat Oct 15, 2005 9:58 am
Hi,
I have extracted phpmailer to e:/grd/lib/phpmailer and have also used the FreakMailer class to input the main functions to save time.
My mailtest.php script works however I get the following errors relating to undefined index;
Notice: Undefined index: DOCUMENT_ROOT in E:\GRD\mailtest.php on line 2
Notice: Undefined index: DOCUMENT_ROOT in E:\GRD\mailtest.php on line 4
Notice: Undefined index: DOCUMENT_ROOT in E:\GRD\mailtest.php on line 7
Notice: Undefined index: DOCUMENT_ROOT in e:\grd\lib\MailClass.inc on line 2
Mail sent!
AS far as I can see, the paths to the files are correct, and look as follows;
require_once($_SERVER['DOCUMENT_ROOT'].'e:/grd/config.php')
Does naybody know why this is happening?
thanks
I have extracted phpmailer to e:/grd/lib/phpmailer and have also used the FreakMailer class to input the main functions to save time.
My mailtest.php script works however I get the following errors relating to undefined index;
Notice: Undefined index: DOCUMENT_ROOT in E:\GRD\mailtest.php on line 2
Notice: Undefined index: DOCUMENT_ROOT in E:\GRD\mailtest.php on line 4
Notice: Undefined index: DOCUMENT_ROOT in E:\GRD\mailtest.php on line 7
Notice: Undefined index: DOCUMENT_ROOT in e:\grd\lib\MailClass.inc on line 2
Mail sent!
AS far as I can see, the paths to the files are correct, and look as follows;
require_once($_SERVER['DOCUMENT_ROOT'].'e:/grd/config.php')
Does naybody know why this is happening?
thanks