how to setup smtp server in WAMP5 ?
Posted by: sanzeeb (202.4.105.---)
Date: November 17, 2006 03:30PM

Hi

As WAMP5 dosent came with any smtp server,so i want to know whats the procedure to setup an smtp server at localhost and fixing apache's->httpd.conf. & php.ini to testing mail functions for the application in development environment. ( if there is any easy solved link's pleas post it.)

thanking you
Tanvir.

Options: ReplyQuote
Re: how to setup smtp server in WAMP5 ?
Posted by: CyberSpatium (71.237.217.---)
Date: November 17, 2006 03:55PM

do not install your own smtp server, it wont take long before spam bots discover your insecur email server and harvest to and use it to send millions of spam messages a day. all these messages will have your ip address in them so they will apear to be from you. this will put you in hot water with your ISP as nearly all ISP's do not allow their customers to run their own web servers. and you will be in even more trouble for running your own email server.

There is a solution though, a free open source php class that allows you to handle email in your scripts without having to worry about having a local smtp server.

[phpmailer.sourceforge.net]

this is the same class that other top php scritps out their use such as coppermine photo gallery, Mambo, Moodle, myphpnuke, phplist, and xoops.

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: how to setup smtp server in WAMP5 ?
Posted by: oceanyhy (---.netvigator.com)
Date: November 21, 2006 03:22AM

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
Re: how to setup smtp server in WAMP5 ?
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 15, 2006 08:00AM

Does anyone even know how to install this PHPMailer?? Like the guy above, I haven't got a clue what the instructions are s'posed to mean. All I know is when my PHP Nuke forum was hosted with cPanel, my Email activation links worked. Now I'm using Wamp, my Emails don't work. So I download this PHPMailer because it sounded realy easy to install, and even though the instructions are short and sweet, I haven't got a single clue on what they mean. Please help me to stop to banging my head against the wall!!

Thanks, J.

Options: ReplyQuote


Sorry, only registered users may post in this forum.