From 3dfa403464bc16e51bc0725deec5ef47d5ec5ff1 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sat, 24 Jun 2017 17:00:07 -0400 Subject: [PATCH] it works --- mail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mail.php b/mail.php index 64161cd..68edb51 100644 --- a/mail.php +++ b/mail.php @@ -6,10 +6,10 @@ $options = array( 'header' => "Content-type: application/json\r\n", 'method' => 'POST', 'content' => '{ - "from": "matt.huntington@gmail.com", + "from": "'.$_POST['email'].'", "to": "matt.huntington@gmail.com", - "subject": "ajax!", - "html": "please please please please please please" + "subject": "New emissary-talent.com message from '.$_POST['name'].'", + "html": "'.$_POST['message'].'" }' ) );