you can also try the PHPMailer class then use Google API to send the mail using your gmail account.
Try this code. It works for me. :)
//$info contains the details for the receiver and mail contents.
function gmail($info){
$account=array();
$subject = 'Payment Successful';
$gmail='nicolelopez@gmail.com'; //your google mail address
$password='nicoleanne'; //your gmail password
$name = $info['first_name']." ".$info['last_name'];
require_once('PHPMailer/class.phpmailer.php');
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
$mail = new PHPMailer();
$body = "Congratulations
$name!
We already received your payment worth
".$info['amount']." USD.
Enjoy your trip and we look forward in dealing with you again. Thank you.
";
$mail->IsSMTP(); // telling the class to use SMTP
//$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
// 1 = errors and messages
// 2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->Username = "{$gmail}"; // GMAIL username
$mail->Password = "{$password}"; // GMAIL password
$mail->SetFrom("{$gmail}", 'Nicole Anne'); // you can change the second parameter of this to your name instead
$mail->Subject = $subject;
$mail->MsgHTML($body);
$address = $info['email'];
$mail->AddAddress($address, $name);
$mail->Send();
Hope it helps :)