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 = “email@example.com,firstname.lastname@example.org”;
$subject = “Test mail”;
$message = “Hello! This is a test email message.”;
$from = “email@example.com”;
$headers = “From:” . $from;
echo “Mail Sent.”;