IsSMTP(); $mail->Host = 'smtp.mail.yahoo.com'; $mail->SMTPAuth = true; $mail->Username = 'newcombats@yahoo.com'; $mail->Password = 'uqcdbnsoagxcyysh'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->CharSet = 'UTF-8'; $mail->setFrom('newcombats@yahoo.com', 'Бойцовский Клуб'); $mail->addAddress($to); // Add a recipient $mail->IsHTML(); $mail->Subject = $subject; $mail->Body = '
' . $message . '
'; $mail->AltBody = $message; $mail->send(); return 1; } catch (Exception $e) { return 0; } } }