diff --git a/mail.php b/mail.php new file mode 100644 index 0000000..0d51d03 --- /dev/null +++ b/mail.php @@ -0,0 +1,23 @@ + array( + 'header' => "Content-type: application/json\r\n", + 'method' => 'POST', + 'content' => '{ + "from": "matt.huntington@gmail.com", + "to": "matt.huntington@gmail.com", + "subject": "no var dump", + "html": "please please please please please please" + }' + ) +); +$context = stream_context_create($options); +$result = file_get_contents($url, false, $context); +if ($result === FALSE) { echo '{ + "status":500, + "error":"could not make request to stupidmailer" +}'; } + +echo $result;