Merhaba plesk panelde sunucu adını direk localhost yapamıyoruz galiba. çünkü benim için en büyük dezavantaj'ı birisine hosting açtığımda phpmailer vs kullanıyorsa mail server hostnamesi benim domainimi yazmak zorunda kalıyor.

$mail->Debugoutput = 'html';
//Set the hostname of the mail server
$mail->Host = "benimdomainim.com";
//Set the SMTP port number - likely to be 25, 465 or 587
$mail->Port = 587;
//Whether to use SMTP authentication
$mail->SMTPAuth = true;


kısacası hostnameyi napabilirim global olması için (localhost gibi)