Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2015 22:05
Embed
What would you like to do?
<?php
$to = "xxxxxxxxxxx";
$subject = "Test mail test";
$message = "Hello! This is a simple email message.";
$from = "test@metbergenviro.co.uk";
$headers = "From: Test" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment