PHPMailer add on Wamp
Posted by: oceanyhy (---.netvigator.com)
Date: November 22, 2006 05:48AM

Hi,

I have download PHPMailer-173, and read readme file, I don't understand how to install.

pasted from readme.txt form PHPMailer-173
Installation:

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.
In the language directory you will find several files like
phpmailer.lang-en.php. If you look right before the .php extension
that there are two letters. These represent the language type of the
translation file. For instance "en" is the English file and "br" is
the Portuguese file. Chose the file that best fits with your language
and place it in the PHP include path. If your language is English
then you have nothing more to do. If it is a different language then
you must point PHPMailer to the correct translation. To do this, call
the PHPMailer SetLanguage method like so:

// To load the Portuguese version
$mail->SetLanguage("br", "/optional/path/to/language/directory/"winking smiley;


So, I have to change php.ini as below:

; Windows: "\path1;\path2"
include_path = ".c:\wamp\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = /var/www/html

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir = public_html

; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:/wamp/php/ext/"

and create a new folder named "includes", then copy (class.phpmailer.php and class.smtp.php) to includes folder.

is it right?

Thanks!!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.