Commit 589d4747 authored by Thomas Bella's avatar Thomas Bella

Add protocol name to email notification

parent ed767e0f
......@@ -270,8 +270,10 @@ foreach ($ressources as $row) {
$mail->setFrom(EMAIL_FROM, 'Certificate Monitor');
$mail->Subject = 'Certificate Monitor [' . $row['domain'] . ']';
// TODO: Use port class to print protocol instead/in addition to port
$mail->Body = 'Your certificate for ' . $row['domain'] . ':' . $row['port'] . ' will expire in about ' . $days . ' days (' . date("d.m.Y H:i", $expiryDate) . ').' . "\n" .
// Use port function to print protocol in addition to port
$protocolName = $ports[$row['port']]['name'];
$mail->Body = 'Your certificate for ' . $row['domain'] . ':' . $row['port'] . ' (' . $protocolName . ') will expire in about ' . $days . ' days (' . date("d.m.Y H:i", $expiryDate) . ').' . "\n" .
'Please renew your certificate.' . "\n\n" . 'Certificate Monitor on ' . BASEURL;
foreach ($emailList as $singleEmail) {
......
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