waterwn1097 Posted January 8, 2014 Share Posted January 8, 2014 alright so another post- might be a dumb issue on my part. I want this email to be sent to my customer when the form is submitted. <?php include_once("scripts/connect.php"); $message = ''; if(isset($_POST['Submit'])) { $id = $_POST['id']; $contractlink = $_POST['contractlink']; $foliolink = $_POST['foliolink']; $status = $_POST['status']; $quote = $_POST['quote']; $deposit = $_POST['deposit']; $vaddress = $_POST['vaddress']; $vcity = $_POST['vcity']; $vstate = $_POST['vstate']; $sql = mysql_query("UPDATE clients SET contractlink='$contractlink', foliolink='$foliolink', status='$status', quote='$quote', deposit='$deposit', vaddress='$vaddress', vcity='$vcity', vstate='$vstate' WHERE id='$id'"); $message = "The Customers Information has been updated."; $lastname = $row['lastName']; $autoreply = "Hi $firstname, We have uploaded your quote for your event! Log in back into your account and view our quote offers. If you would like to hire us based on this quote please respond to this email and view the paperwork on your account page. Thanks! Wesley $replyemail = "From: wesley@email.com"; mail ("$email", "Alpha Dog Entertainment Quote Now Loaded", $autoreply, $replyemail); } ?> however the email is not sending. Please help!! Quote Link to comment Share on other sites More sharing options...
GetFreaky Posted January 8, 2014 Share Posted January 8, 2014 alright so another post- might be a dumb issue on my part. I want this email to be sent to my customer when the form is submitted. <?php include_once("scripts/connect.php"); $message = ''; if(isset($_POST['Submit'])) { $id = $_POST['id']; $contractlink = $_POST['contractlink']; $foliolink = $_POST['foliolink']; $status = $_POST['status']; $quote = $_POST['quote']; $deposit = $_POST['deposit']; $vaddress = $_POST['vaddress']; $vcity = $_POST['vcity']; $vstate = $_POST['vstate']; $sql = mysql_query("UPDATE clients SET contractlink='$contractlink', foliolink='$foliolink', status='$status', quote='$quote', deposit='$deposit', vaddress='$vaddress', vcity='$vcity', vstate='$vstate' WHERE id='$id'"); $message = "The Customers Information has been updated."; $lastname = $row['lastName']; $autoreply = "Hi $firstname, We have uploaded your quote for your event! Log in back into your account and view our quote offers. If you would like to hire us based on this quote please respond to this email and view the paperwork on your account page. Thanks! Wesley $replyemail = "From: wesley@email.com"; mail ("$email", "Alpha Dog Entertainment Quote Now Loaded", $autoreply, $replyemail); } ?> however the email is not sending. Please help!! Your missing a double quote I believe at the end of your $autoreply string. Quote Link to comment Share on other sites More sharing options...
waterwn1097 Posted January 8, 2014 Author Share Posted January 8, 2014 thanks for the reply I placed the double quote after the email ending and still no result thanks Quote Link to comment Share on other sites More sharing options...
GetFreaky Posted January 8, 2014 Share Posted January 8, 2014 (edited) thanks for the reply I placed the double quote after the email ending and still no result thanks Where is your $email variable? also where have you declared your $row variable? It seems to me that you are editing code that isn't written by you? If so, do you understand how to fetch the result from a mysql query? Your terminates prior to sending the email Edited January 8, 2014 by GetFreaky Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.