Sender.net with Elementor Forms — The Guide No One Wrote (Until Now)

Sender.net elementor forms integration

There’s something oddly satisfying about getting two platforms to work together—especially when no one else has documented it properly. If you’ve ever Googled “Sender.net Elementor integration” and found nothing but tumbleweeds, you’re not imagining things. It’s just not out there.

Until now. Because we figured it out. Using a simple webhook, you can send leads directly from Elementor forms to your Sender.net email list—no third-party plugins, no dodgy hacks, no expensive Zapier automations.

Ready to make your form submissions actually do something useful? Let’s get into it.

Sender.net elementor forms integration

Step 1: Create a Webhook File on Your Server

■ Head to the backend of your site (via FTP or cPanel) and create a new PHP file—call it something like webhook.php. This file is going to act as your form handler.

■ Paste the webhook code into this file (see code section at the end of this post). This code captures form submissions and forwards them to Sender.net.

■ Save the file in a secure location, ideally outside of the main public directory if you want to lock it down.

Step 2: Link the Webhook in Elementor

■ In Elementor, open the form widget settings.

■ Under “Actions After Submit,” choose Webhook.

■ A new “Webhook” field will appear—paste the full URL path to your webhook.php file. Example: https://yourdomain.com/webhook.php

Step 3: Get Your Sender.net API Key

■ Login to your Sender.net dashboard and head over to Integrations > API.

■ Generate an API key if you haven’t already. This key will be used to authenticate your requests.

■ Copy it and keep it handy—we’ll paste it into the webhook file next.

Step 4: Find Your Sender.net Group ID

■ In Sender.net, navigate to the Subscribers > Groups section.

■ Click on the group you want your leads to go into. You’ll find a Group ID in the URL or export section.

■ Copy this Group ID—it’s essential to make sure your form entries are properly categorised.

Step 5: Add Your API Key and Group ID into the Webhook

■ Open your webhook.php file again.

■ Replace the placeholders in the script with your actual API key and group ID:

				
					$api_key = "ADD-API-KEY-IN-HERE";
$group_id = "ADD-GROUP-IN-HERE";
				
			

■ Save the file. You’re done. Any Elementor form using this webhook will now send contact data directly to Sender.net.

Full Example: webhook.php

				
					<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);

header("Content-Type: application/json");

$content_type = $_SERVER['CONTENT_TYPE'] ?? '';
$data = [];

if (stripos($content_type, 'application/json') !== false) {
    $raw = file_get_contents("php://input");
    $data = json_decode($raw, true);
} else {
    $data = $_POST;
}

$email = $data['email'] ?? null;
$firstname  = $data['firstname'] ?? '';

if (!$email || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
    http_response_code(200);
    echo json_encode([
        "status" => "error",
        "message" => "Missing or invalid email"
    ]);
    exit;
}

$api_key = "ADD-API-KEY-IN-HERE";
$group_id = "ADD-GROUP-IN-HERE";

$payload = json_encode([
    "email" => $email,
    "firstname" => $firstname,
    "groups" => [$group_id]
]);

$ch = curl_init('https://api.sender.net/v2/subscribers');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "Authorization: Bearer $api_key"
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);

$response = curl_exec($ch);
$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

http_response_code(200);
exit;
				
			

Final Thoughts

This approach works, it’s scalable, and it avoids any unnecessary bloat. It’s just you, Elementor, Sender.net, and a simple PHP file doing God’s work. If you’ve ever said, “There has to be a better way,”—this is it.

If you liked this content!!!

Consider that we have researched this topic and provided you with the information for free to add some value to your life. It would be really great if you leave us a review so we can help build our business too. It will encourage us to write more useful and practical content.

Get Your Free Quote