email server test

How can I test my PHP scripts?
I am self taught and I am a beginner ... I created a form in HTML and PHP script writing to process data in my email, I tested on XAMPP, but is there a way to ensure you receive the email? I would like to receive the e-mail containing the data from my form to get an idea of how it looks before going on the server. Is this possible? Thank you I appreciate really help:)
I suppose you have installed XAMPP on your local Windows computer. I suppose also that you try to send mail through PHP mail function "()". Unlike Linux, Windows does not come with a transfer agent default mail (MTA). The flavors of Linux come ships with Sendmail, which acts as a local MTA. To get PHP to send emails, windows machine should be able to send emails, analyzed and PHP to send email through it. So first you need for your machine to send emails. You can either install a local MTA (not recommended). Http: / / www.google.com/Top/Computers/Software/Internet/Servers/Mail/ http:// en.wikipedia.org / wiki / List_of_mail_servers Or use an MTA free as hotmail.com or gmail.com. You must have an account. To use an ATM free, specify the MTA host, port, username and password. Fortunately, there are programs such as sendmail for Windows and one is included with XAMPP makes it easy. You only need to configure PHP to use the binary sendmail provided by XAMPP post messages. To do this, edit the configuration file for PHP, php.ini. You can find this in XAMPP opening the Control Panel, click "Browse" and navigate to the folder "php". The complete itinerary should be something like: c: / xampp / php / Look for php.ini:; sendmail_path = "" C: xampp sendmail sendmail.exe "-t" and delete ";" since the beginning of this line so that the configuration directive. Now your PHP is configured to use the sendmail program next XAMPP to win. Now you must configure your sendmail program to send mail to your SMTP server. Thus, in sendmail.init sendmail open the file ". C: xampp sendmail sendmail.init Create new account setup. Example of Gmail: Gmail Gmail account # TLS instance on host smtp.gmail.com tls_certcheck outside myuser@gmail.com authorities in myuser password user password mypassword mypassword myuser@gmail.com alternate and your data. Now that you have to do this analysis, the failure of the last Publishing online in the file: # Set a default account account default: Gmail will then restart the Apache service. You can do this from XAMPP control panel. (start / stop). This reloads the configuration of PHP. Now you should be able to send emails.