IsSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.mail.yahoo.com'; // Specify main and backup server $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'newcombats@yahoo.com'; // SMTP username $mail->Password = 'uqcdbnsoagxcyysh'; $mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted $mail->Port = 587; $mail->CharSet = 'UTF-8'; $mail->From = 'newcombats@yahoo.com'; $mail->FromName = 'Бойцовский Клуб'; $mail->AddAddress($to); // Add a recipient $mail->IsHTML(true); // Set email format to HTML $mail->Subject = $subject; $mail->Body = '