Skip to main content

Install

composer require sendkit/sendkit-php

Send email

use SendKit\SendKit;

$client = SendKit::client('sk_your_api_key');

$response = $client->emails()->send([
    'from' => 'Your Name <you@yourdomain.com>',
    'to' => 'recipient@example.com',
    'subject' => 'Hello from SendKit',
    'html' => '<h1>Welcome!</h1><p>Your first email with SendKit.</p>',
]);

echo $response['id'];

Validate email

Validate an email address before sending. Each validation costs credits.
use SendKit\SendKit;

$client = SendKit::client('sk_your_api_key');

$result = $client->validateEmail('recipient@example.com');

if ($result['should_block']) {
    // Email should not be used
    echo $result['block_reason'];
}

echo $result['is_valid'];           // "HIGH" or "LOW"
echo $result['evaluations'];        // detailed checks
The evaluations array contains:
KeyDescription
has_valid_syntaxWhether the email has valid syntax
has_valid_dnsWhether the domain has valid DNS records
mailbox_existsWhether the mailbox exists
is_role_addressWhether it’s a role address (e.g. info@, admin@)
is_disposableWhether it’s a disposable email
is_random_inputWhether it appears to be random input