Connecting Tech Pros Worldwide Forums | Help | Site Map

phpmailer path configuration

Familiar Sight
 
Join Date: Nov 2007
Posts: 244
#1: Feb 2 '09
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini include_path. If you are using the SMTP mailer then place class.smtp.php in your path as well", but I don't know where to paste the class.phpmailer.php into my php.ini include_path.

I am using WAMP Server. and it is in c drive.

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,660
#2: Feb 2 '09

re: phpmailer path configuration


in php.ini is a variable called "include_path" (around line 470) to this variable add the path to (directory of) those classes. reason: if you do not submit an absolute path of the file to require/include, these statements use the include_path variable to search the file in all directories specified therein.
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#3: Feb 2 '09

re: phpmailer path configuration


mukeshrasm,
Please use a "Good topic title" always, you may better to read the HELP/FAQ here.
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,752
#4: Feb 2 '09

re: phpmailer path configuration


Hi.

You could also simply load the class files into the root directory of your project. Somewhere you can include them directly, like you would any other file.
Familiar Sight
 
Join Date: Nov 2007
Posts: 244
#5: Feb 4 '09

re: phpmailer path configuration


Quote:

Originally Posted by Atli View Post

Hi.

You could also simply load the class files into the root directory of your project. Somewhere you can include them directly, like you would any other file.

Thanks! I will follow.
Reply