diff --git a/modules/cron/www/cron.php b/modules/cron/www/cron.php index 0306e85cb7f1f0eb682f6d88afa18bb36ced2202..ac5390a8fa42df62baaa45da7fa38c490f5f3de1 100644 --- a/modules/cron/www/cron.php +++ b/modules/cron/www/cron.php @@ -42,7 +42,8 @@ if ($cronconfig->getValue('sendemail', TRUE) && count($summary) > 0) { if($toaddress == 'na@example.org') { SimpleSAML_Logger::error('Cron - Could not send email. [technicalcontact_email] not set in config.'); } else { - $email = new SimpleSAML_XHTML_EMail($toaddress, 'simpleSAMLphp cron report', 'no-reply@simplesamlphp.com'); + // Use $toaddress for both TO and FROM + $email = new SimpleSAML_XHTML_EMail($toaddress, 'SimpleSAMLphp cron report', $toaddress); $email->setBody($message); $email->send(); }