From fac68f8f4707093a59ac0680b5d1ac9ea524d611 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sat, 24 Jun 2017 16:29:02 -0400 Subject: [PATCH] mailer.php --- mail.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mail.php 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;