How can PHP be used to send test results via email without displaying them on a webpage?

To send test results via email without displaying them on a webpage, you can use PHP's `mail()` function to send an email with the test results as the message body. Make sure to set the appropriate headers to ensure the email is properly formatted. You can also use PHP to generate the test results dynamically before sending them in the email.

<?php
$testResults = "Test results: Passed";
$recipient = "recipient@example.com";
$subject = "Test Results";

$headers = "From: sender@example.com\r\n";
$headers .= "Content-Type: text/plain; charset=ISO-8859-1\r\n";

// Send email with test results
mail($recipient, $subject, $testResults, $headers);
?>