Jump to content

auto email after form submit errors.


waterwn1097

Recommended Posts

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!!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by GetFreaky
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.