mirror of
https://github.com/Alvin-Zilverstand/Spik-en-span.git
synced 2026-03-06 11:17:09 +01:00
Update email configuration to use Gmail SMTP settings
This commit is contained in:
@@ -107,14 +107,14 @@ $mail = new PHPMailer(true);
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$mail->isSMTP();
|
$mail->isSMTP();
|
||||||
$mail->Host = 'smtp.office365.com';
|
$mail->Host = 'smtp.gmail.com';
|
||||||
$mail->SMTPAuth = true;
|
$mail->SMTPAuth = true;
|
||||||
$mail->Username = 'ticketsopdracht@outlook.com';
|
$mail->Username = 'ilqvw2txgisiayx7ftcb@gmail.com'; // Replace with your Gmail address
|
||||||
$mail->Password = 'olomnqcnvwfzsrky'; // Replace with the actual password or app-specific password
|
$mail->Password = 'uflc vzcy xmgd tfpz'; // Replace with your Gmail app password
|
||||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
||||||
$mail->Port = 587;
|
$mail->Port = 587;
|
||||||
|
|
||||||
$mail->setFrom('ticketsopdracht@outlook.com', 'Spik & Span');
|
$mail->setFrom('ilqvw2txgisiayx7ftcb@gmail.com', 'Spik & Span');
|
||||||
$mail->addAddress($email, $name);
|
$mail->addAddress($email, $name);
|
||||||
|
|
||||||
$mail->isHTML(true);
|
$mail->isHTML(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user