1.Start Mercury (using the XAMPP Control panel) and then open the admin panel.
2.first of all we disable the HTTP server of Mercury so that it doesn't conflict with the apache:
1.“Configuration” > “Protocol modules”
2.Make the settings as in picture below
3.Click “OK” and restart Mercury(Stop and start in Xampp)
4.now let's configure Mercury in general:
1.“Configuration” -> “Mercury core module”, tab “General”
2.click “OK” and leave the dialog after setting the settings as in the picture below
5.next we focus on the Mercury S SMTP Server for outgoing emails:
1.“Configuration” > “Mercury S SMTP Server”->“General”
2.“Announce myself as”: “Sundar SMTP” (this can be anything)
3.“Listen on TCP/IP port” :”25”, that's the SMTP port
4.“IP interface to use” : “127.0.0.1” and add the IP range from “127.0.0.1” till “127.0.0.1”
5.select “Allow connections”
6.“Connection Control” click on “Add restriction” then click on “OK”
6.now let's configure the Mercury P POP3 Server:
1.“Configuration”> “Mercury P POP3 Server”, select the tab “General”
2.“Listen on TCP port” > “110” and “IP interface to use” >; “127.0.0.1”
3.choose the tab “Connection control” and proceed as already written under 5.5 (see above)
4.that's it already, leave the dialog by clicking “OK”
7.“Mercury C SMTP Client”
1.“Configuration” > “Mercury C SMTP Client”
2.To send mail to external addresses we need to have an external SMTP server (I am using Google as if its available to all, we need a Google account to do so).
3.“Smart host name”, “smtp.gmail.com”
4.“Connection port/type”:
5.“Port”: 25
6.Select SSL Encryption via STARTTLS command in the select box near
7.“Login username” : Gmail user name (ex meenakshi.sun20@gmail.com)
8.“Password” :xxxxxxx
8.let's check the Mercury users that are normally pre-configured:
1.“Configuration”> “Manage local users”
2.There should be at least the users “Admin” and “postmaster”, both with administrative rights. If not you have to add them.
9.now we finished with Mercury, but we still need to configure PHP for sending mail with our scripts:
1.Open the php.ini, you find it under “xampp/php/php.ini”
2.Search for “[mail function]”...
3.and we add/adjust the following:
3.1.“SMTP = localhost”
3.2.“smtp_port = 25”
3.3.“sendmail_from = postmaster@localhost”
4.save the php.ini and restart the Apache
10.Now everything should work! But we'll test it first:
1.within Mercury choose “File” > “Send mail message” type and send a test mail
2.within the window “Mercury Core Process” we'll see our test mail at first:
2.1.“13:38:41 JOB XXXXXX: from postmaster@localhost (local) To:xxx20@gmail.com (non-local) (JOB XXXXXX) -OK”
3.the mail was received in Mercury and processed, after some seconds the window “Mercury SMTP client (relay version)” should show some actions:
3.1.“10 Jun 2010 13:39, Servicing job XXXXXX ...OK”
3.2.if you see this message, everything went fine and the mail was sent!