Sunday, November 14, 2010

HOW TO SEND MAIL FROM YOUR LOCAL HOST USING WAMPP(MERCURY /32)

you must have tried to make php mail() work on localhost. But had failed. don't give up.
Presenting the way for turning your localhost into a working mail server.

WHAT WE NEED
I use XAMPP as my local web server on my Windows machine. For php mail() function to work on the localhost, you need a SMTP mail server.

Requirements

A Web server : Here we use the xampp package. You can download it from here. It is very easy to install and does not require any expertise.
A Mail server : Mercury/32 Mail Transport System is an excellent mail server bundled with XAMPP. So no need to search for any other mail server.
A Mail Client : You need to have a mail client to receive mails sent from localhost or basically from your Mercury/32 mail server. Mail clients include outlook express, thunderbird, Eudoramail etc. For this tutorial I will be using the default mail client available with Windows system , ie the outlook express.

The Steps to Configure Mercury/32 mail server


The following steps will guide you through the working of mail function on localhost.
1)      You need to start the localhost web server. The XAMPP in this case.




2) By default XAMPP will not start the mercury mail server. So you need to click on start to start the mercury/32 on the XAMPP control panel.



3)      Click on the Admin Button next to mercury on XAMPP control panel. This will open the Mercury/32 Admin Panel. Click on Configuration -> Manage Local users.


                       

4)      Create a New User. Let
Username : root
Password : root


           
      5) Next, from the Mercury/32 Admin panel, Go to Configurations -> Mercury SMTP server and   make the following Changes.
            IP Interface to use : 127.0.0.1
            Listen to TCP/IP port : 25
            Announce Myself as : 127.0.0.1



      6)Next, from the Mercury/32 Admin Panel , Go to Configurations -> Mercury POP 3 Server and fill in the following details.
            Listen to TCP port : 110
            IP Interface to use : 127.0.0.1




       7) Next, from the Mercury/32 Admin Panel, Go to Configurations - > MercuryE SMTP client Configuration , and make the following changes
            Identify Myself as : 127.0.0.1
            Name server : 127.0.0.1



       8) Next step is from the Mercury/32 panel go to Configuration -> Mercury D pop3 client and there create a new Account. Click on “ADD” and then enter the following details for “Edit POP3 mailbox definition” dialog box.
            POP3 Host : 127.0.0.1
            Username : root
            Password  : root
           And then click on save.




This finishes Configuration of your Mercury/32 Mail transport system.

We now have to configure a mail client, so as to receive mails. We will use the windows default mail client, the outlook express. The following steps will guide you to create a user account on outlook express.

Steps to set up OUTLOOK EXPRESS




     1)Open Outlook express and then click on Tools -> Accounts -> Add, and then click on Mail




     2)For new Internet account on outlook express , create a new user
            Enter display name: root



            Enter email Id: root@localhost.com



            Then click Next. On the Internet Connection wizard,
            Select POP3 for my incoming mail server.
            For Incoming mail (POP3, IMAP, HTTP) server, enter
            127.0.0.1
            For Outgoing (SMTP) server, enter
            127.0.0.1



            Click on Next and then , enter the following fields
            Account name : root
            Password : root
            Click on finish and you are ready to Go.

Once you have finished creating a account on Outlook express , send a test mail to yourself.




You can now test your php code to check if your script is working successfully or not.You can try this script. Copy the code and save it in a file for eg mail.php. Save this file in your root folder , for xampp it will be in your htdocs folder.

//php code to send mail,
//author : idrish laxmidhar
//Use this code to send a test mail from your localhost.

$to = "root@localhost.com";
$subject = "Hi!";
$body="test".PHP_EOL;
$body.="Hello World. If all went well then you can see this mail in your Inbox".PHP_EOL;
$body.="Regards".PHP_EOL;
$body.="Idrish Laxmidhar".PHP_EOL;
$body.="http://i-tech-life.blogspot.com".PHP_EOL;

$headers = "From: root@localhost.com";

if (mail($to, $subject, $body, $headers)) {
  echo("Message successfully sent!
");

 } else {
  echo("Message delivery failed...
");

 }
?>



 Run the script. If all went well, the script should execute successfully. Check your email. You should receive an e-mail.


Friday, September 3, 2010

How to get the IP address of a friend chatting with you

**THIS ARTICLE IS STRICTLY FOR EDUCATIONAL PURPOSE ONLY & ONE SHOULD
NOT MISUSE THESE IDEAS TO HARM ANYONE OR IN SUPPORT OF ILLEGAL WORK**

Hello again.
In today's era,it is very hard to identify people on the internet.It is often hard to trust over the information of identity given by any person.
I am not going to discuss to discuss about the real & exact identity of a chatting buddy but atleast ainfomation like IP address & country of living of that person(sometimes area also) can be fetched.
After logging in or while chatting with any one else you want to inquire.
when you are chatting with a friend & chatting window is alive-----
1.Type cmd in run & open command prompt window.

2.In command prompt type netstat and press ENTER.

This command will show all the connect of your computer with remote hosts.
In this context i would like to share that before using netstat in the command prompt it is the IMPORTANT thing that you must do: Send them a File! or Make Cam to Cam or Share Picture. This will make you and your friend connected via Peer to Peer. Peer to Peer allow us to know or see each others IP easily.
You must have some idea about the port address to know the exact IP address of foreign address(remote host).
Eg.    
File or picture transfer---Port 80 or 81 in peer to peer connection.
Web Cam --------------Port 5100
Voice Chat--------------Port 5000 or Port 5001
Further if you use any other chat accessories ,,you can get its port address by googling.
Example of Port address. 127.0.0.1:5100    ,,,here After : symbol,,the port address is written.i.e.5100

Now you can use a lot of IP tracker websites to get the information of that IP address.
One of the IP tracker website can be used by clicking THIS LINK

Alternatively without using netstat command you can also use a software 'SHARP IP GETTER' to track the ip of your chatting buddy.CLICK HERE to get a copy of 'SHARP IP GETTER'.
This way atleast IP information or better to say their ISP information can also be traced.

ps: Yahoo! and the Yahoo! Messenger logo are registered trademark of Yahoo, Inc

Thursday, September 2, 2010

My Very First Blog on BLOGSPOT

Hello,
Apart of the profile at first i would like to express my thanks to Miss Subhasnigdha Samantaray,  COMPUTER SC. & ENGG., MITS Rayagada who inspired me to start a new blog.As i have written a lot of blogs online on different websites along with wap sites but it is the first time i am writing in BLOGGER here.
I am very much thankful to Mr.Anirban Mitra (sr. faculty MITS Rayagada) who provided his continuous guidance in field of technology and research.
It will not be justified if i miss to provide my thanks to Mr. Vikash Ranjan Jha ,CSE ,MITS.I am not going to write much as they all are not the new faces to the computer sc. field.
I am much thankful to a personality who always inspired me as a friend though she is a junior to me and though she is not physically present near to me but always inspires me to work and to move forward.
i remember her words -- "Never leave your talent in your life..you can do and you will do".
Apart of this, I thank all my colleague as well as co-workes to make me move further.
ENJOY the blogs. If you have any query or you find anything worth discussing, feel free to write your comments,feedback,questions or suggestion.