For starters, I downloaded a Wordpress plugin that allows you to insert PHP snippets into a Wordpress site. I added this code hoping that it will send an email but I have not receeved anything yet. I have used two different snippet plugins, and I am not sure what could be causing the issue, or if there would be an easier way to go about doing this.
<?php
$to = '[email protected]';
$subject = 'Test email';
$message = 'Test';
$headers = "From: The Sender name <[email protected]>";
mail($to, $subject, $message, $headers);
?>