Update email configuration to use Gmail SMTP settings

This commit is contained in:
vista-man
2025-04-11 11:23:46 +02:00
parent 0c5d27e913
commit 231e3003f6
2 changed files with 4 additions and 4 deletions

View File

@@ -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);