Deneme form

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Perfex CRM Form Gönderimi</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }
        button {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <h1>Müşteriye Form Gönder</h1>
    <p>Müşteriye aşağıdaki butona tıklayarak bir form linki gönderebilirsiniz.</p>
    <button id="sendForm">Form Linki Gönder</button>

    <script>
        document.getElementById('sendForm').addEventListener('click', function () {
            // Form linki - Perfex CRM'de oluşturulmuş form URL'si burada olmalı
            const formLink = "https://yourperfexcrm.com/form/survey?id=12345";

            // Müşteri e-postası
            const customerEmail = "customer@example.com";

            // E-posta içeriğini oluştur
            const emailSubject = encodeURIComponent("Lütfen Formu Doldurun");
            const emailBody = encodeURIComponent(
                `Merhaba,\n\nLütfen aşağıdaki linki tıklayarak formumuzu doldurun:\n\n${formLink}\n\nTeşekkürler!`
            );

            // E-posta linkini aç
            const mailtoLink = `mailto:${customerEmail}?subject=${emailSubject}&body=${emailBody}`;
            window.location.href = mailtoLink;
        });
    </script>
</body>
</html>

Bu makaleyi yararlı buldunuz mu?