require_once('mailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.xxx.com"; // SMTP server
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls";
$mail->Host = "mail.xxx.com"; // sets the SMTP server
$mail->Port = 25; // set the SMTP port for the GMAIL server
$mail->Username = "mail@xxx.com"; // SMTP account username
$mail->Password = "mailxxx"; // SMTP account password
$mail->SetFrom('mail@xxx.com', 'xxx');
$mail->AddReplyTo("mail@xxx.com","xxx");
$mail->CharSet = "iso-8859-9";
if($mail->Send()){
Gönderme başarılı;
}