From 231e3003f6a2e6feb0cf57f7a17de548b17849ef Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Fri, 11 Apr 2025 11:23:46 +0200 Subject: [PATCH 1/2] Update email configuration to use Gmail SMTP settings --- php/process_ticket.php | 8 ++++---- tmp/.txt | 0 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 tmp/.txt diff --git a/php/process_ticket.php b/php/process_ticket.php index 1bd6d4c..f62a591 100644 --- a/php/process_ticket.php +++ b/php/process_ticket.php @@ -107,14 +107,14 @@ $mail = new PHPMailer(true); try { $mail->isSMTP(); - $mail->Host = 'smtp.office365.com'; + $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; - $mail->Username = 'ticketsopdracht@outlook.com'; - $mail->Password = 'olomnqcnvwfzsrky'; // Replace with the actual password or app-specific password + $mail->Username = 'ilqvw2txgisiayx7ftcb@gmail.com'; // Replace with your Gmail address + $mail->Password = 'uflc vzcy xmgd tfpz'; // Replace with your Gmail app password $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; - $mail->setFrom('ticketsopdracht@outlook.com', 'Spik & Span'); + $mail->setFrom('ilqvw2txgisiayx7ftcb@gmail.com', 'Spik & Span'); $mail->addAddress($email, $name); $mail->isHTML(true); diff --git a/tmp/.txt b/tmp/.txt new file mode 100644 index 0000000..e69de29 From 77d38a208b795c573bae3196699e9712137d3f53 Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Fri, 11 Apr 2025 11:53:29 +0200 Subject: [PATCH 2/2] Update Gmail SMTP settings in process_ticket.php --- php/process_ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/process_ticket.php b/php/process_ticket.php index f62a591..8332dee 100644 --- a/php/process_ticket.php +++ b/php/process_ticket.php @@ -109,8 +109,8 @@ try { $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; - $mail->Username = 'ilqvw2txgisiayx7ftcb@gmail.com'; // Replace with your Gmail address - $mail->Password = 'uflc vzcy xmgd tfpz'; // Replace with your Gmail app password + $mail->Username = 'ilqvw2txgisiayx7ftcb@gmail.com'; + $mail->Password = 'uflc vzcy xmgd tfpz'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587;