As mentioned in my comment, can't send unauthorized emails from / to a gmail address. Have a look at PHPMailer => https://github.com/PHPMailer/PHPMailer
Download the zip file https://github.com/PHPMailer/PHPMailer/archive/master.zip and upload to your server.
And use the following as an example, change things where needed:
<?php
require_once('/path/to/PHPMailerAutoload.php');
$mail = new PHPMailer;
$mail->isSMTP();
$mail->SMTPDebug = false;
$mail->Debugoutput = 'html';
$mail->Host = 'smtp.gmail.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = '[email protected]';
$mail->Password = 'password';
$mail->setFrom('[email protected]', 'From Name (freeform string)');
$mail->addAddress('[email protected]'); //call this multiple times for multiple recipients
$mail->Subject = 'Subject';
$mail->msgHTML('<h3>Hello World</h3>');
$mail->AltBody = 'alternative body if html fails to load';
//$mail->addAttachment('/path/to/file/); //OPTIONAL attachment
if (!$mail->send()) {
echo "Mailer Error: ";
echo $mail->ErrorInfo;
} else {
echo "Email sent";
}
?>