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
PhpMailer problem
Moderator: General Moderators
Code: Select all
require_once($_SERVER['DOCUMENT_ROOT'].'e:/grd/config.php')I would just remove the whole $_SERVER["DOCUMENT_ROOT"] piece out.. since you're specifying the whole path including drive after it. That's why the script still works.. and you're just getting NOTICE alerts.
hanji