Commit f4574181 authored by Thomas Bella's avatar Thomas Bella

Mark email as important if expiration is near

parent 589d4747
Pipeline #317 passed with stage
in 16 seconds
......@@ -268,6 +268,13 @@ foreach ($ressources as $row) {
}
}
// Set priority to high if expiration date is near
if ($days <= 3) {
$mail->Priority = 1;
$mail->AddCustomHeader('X-MSMail-Priority: High');
$mail->AddCustomHeader('Importance: High');
}
$mail->setFrom(EMAIL_FROM, 'Certificate Monitor');
$mail->Subject = 'Certificate Monitor [' . $row['domain'] . ']';
// Use port function to print protocol in addition to port
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment