This commit is contained in:
Suvodip
2024-05-31 17:26:35 +05:30
parent d195bc0607
commit ca5828dcbc

View File

@@ -349,13 +349,14 @@
$stmt->bindParam(':method', $messageMethod);
$stmt->execute();
$sendSuccessMessage = "Email Sent successfully";
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
// echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
} catch (PDOException $e) {
echo "Error: " . $e->getMessage();
}
}
// Close the file pointer
fclose($fp);
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
}
} elseif (isset($_GET['send-whatsapp-id']) && $_GET['send-whatsapp-id']) {
$url = "https://api.interakt.ai/v1/public/message/";
@@ -412,7 +413,7 @@
$stmt->bindParam(':method', $messageMethod);
$stmt->execute();
$sendSuccessMessage = "WhatsApp Sent successfully";
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
} catch(PDOException $e) {
echo "Error: " . $e->getMessage();
}
@@ -420,6 +421,7 @@
// echo $response;
}
fclose($fp);
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
}
}
?>