<?php
$from = "amazo";
$to = "hamilton@camazo.com.br";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";
?>
Fatal error: Uncaught Error: Call to undefined function mail() in /in/TspsY:7
Stack trace:
#0 {main}
thrown in /in/TspsY on line 7
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.26, 8.0.13
Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/TspsY on line 7
Test email sent