Mail function allows your website to automatically send emails like an auto response to customers or website viewers. This is done through sending email via php script. You may try the example below. Please replace all the necessary information to the correct ones.
Sending email via PHP script
$to = “firstname.lastname@example.org,email@example.com”;
$subject = “Test mail”;
$message = “Hello! This is a test email message.”;
$from = “firstname.lastname@example.org”;
$headers = “From:” . $from;
echo “Mail Sent.”;