<?php
/**
* This section ensures that Twilio gets a response.
*/
header('Content-type: text/xml');
echo '’;
echo ”; //Place the desired response (if any) here

/**
* This section actually sends the email.
*/
$to = “emmergene@yahoo.com”; // Your email address
$subject = “Message from {$_REQUEST[‘From’]} at {$_REQUEST[‘To’]}”;
$message = “You have received a message from {$_REQUEST[‘From’]}.
Body: {$_REQUEST[‘Body’]}”;
$headers = “From: emmergene@yahoo.com”; // Who should it come from?

mail($to, $subject, $message, $headers);