isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = 'neoeat.sav@gmail.com'; $mail->Password = 'zann afaj cnus tifc'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = 465; $mail->setFrom($email, $name); $mail->addAddress('neoeat.sav@gmail.com', 'Neo Eat'); $mail->isHTML(false); $mail->Subject = 'Contact Form Submission'; $mail->Body = "Name: $name\nEmail: $email\nMessage:\n$message"; $mail->send(); header("Location: ../html/messageSucces.html"); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } ?>