Commit d42fa2f1d295477b20a488287d0e0498fbdc3b62

Authored by Alex Savenko
1 parent 2f909335

fix

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
www-arktika/email.php
@@ -24,8 +24,9 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && @@ -24,8 +24,9 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) &&
24 $code = "4749440"; 24 $code = "4749440";
25 25
26 $today = date("Y-m-d H:i:s"); 26 $today = date("Y-m-d H:i:s");
27 - //query = pg_query($db_conn, "INSERT INTO customers_arktika (name, email, date) VALUES (E'".$name."', E'".$email."', CURRENT_TIMESTAMP)");  
28 - //Create a new PHPMailer instance 27 + $query = pg_query($db_conn, "INSERT INTO customers_arktika (name, email, date) VALUES (E'".$name."', E'".$email."', CURRENT_TIMESTAMP)") or die(json_encode(pg_last_error()));
  28 + exit;
  29 + //Create a new PHPMailer instance
29 $mail = new PHPMailer; 30 $mail = new PHPMailer;
30 //Tell PHPMailer to use SMTP 31 //Tell PHPMailer to use SMTP
31 $mail->isSMTP(); 32 $mail->isSMTP();