sonunda yaptım
yappılması gereken:
$mail->Host = "mail.alanadı.net"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "mail.alanadı.net"; // sets the SMTP server
$mail->Port = 25; // set the SMTP port for the GMAIL server
$mail->Username = "destek@alanadı.net"; // SMTP account username
$mail->Password = "şifre"; // SMTP account password
Sanırım bunun için bir kütüphane olması gerekiyor?