Quick code to send email from the server

The following code will help you to know if you can send email from your server or not.

 

Open a notepad or textEdit (on OS X) and save it as PHP, upload it to your server and access or execute the file.