that doesnt seem to be sending.
This is what I now have and the output
$recipient = $emailList;
$subject = "Mailing List: ".$subject;
$body_of_email = $body;
$additional_headers = 'From:adam@hotmail.com\r\n$recipient';
if(mail("", $subject, $body_of_email, $additional_headers))
{
$updateStatus = "Mail sent successfully";
}
else
{
$updateStatus = "Error Sending Mail. Please try again.";
}
echo $updateStatus
Then it outputs
Error Sending Mail. Please try again