query($reg); if($check==FALSE) { echo "Error: " . $reg . "
" . $conn->error; } else { $msg = ''; /* $msg.= '
';*/ /* $msg.='
';*/ $msg.='
'; $msg .= ''; $msg.= ''; $msg.=''; $msg.=''; $msg.=''; $msg.=''; $msg.=''.''; $msg.=''.''; $msg.=''.''; $msg.=''.''; $msg.=''.''; $msg.=''.''; $msg .= "
Customer Name:'.$name.'
Phone No:'.$phone.'
Address:'.$address.'
Job type:'.$job_type.'
Job amount:'.$job_amount.'
Received amount:'.$received_amount.'
Balance:'.$balance.'
Payment mode:'.$payment_mode.'
Cheque No:'.$cheque.'
Tech name:'.$tech_name.'
Remarks:'.$remarks.'
"; $msg.= '
'; $msg.= ""; $headers = 'MIME-Version: 1.0'."\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n"; $headers .= 'From: Nadeem@'.$_SERVER['SERVER_NAME']."\r\n"; $headers .= 'Cc: @gmail.com' . "\r\n"; mail("nadeem@nimblewebsolutions.com", "Email Testing Nadeem - ".$name, $msg, $headers); echo "true"; header("location:index.php?insert=succ"); } ?>