Integrations
Connect from any language or any SMTP tool
ScrubiMail has two doors in: an HTTP API for your code and an SMTP relay for everything else. If it can make an HTTPS request or speak SMTP, it works.
HTTP API from any language
Send JSON with your key in the X-API-Key header. There is no SDK to install: these requests are the whole integration.
- Validate one address, a list, or look up a domain's reputation.
- Send single and bulk email, manage domains, templates and suppressions.
- Scoped keys, so a key used in one service can do only what that service needs.
curl -X POST "https://api.scrubimail.com/scrubimail/api/v1/validate/" \
-H "X-API-Key: $SCRUBIMAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]"}'const res = await fetch("https://api.scrubimail.com/scrubimail/api/v1/validate/", {
method: "POST",
headers: {
"X-API-Key": process.env.SCRUBIMAIL_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ email: "[email protected]" }),
});
const result = await res.json();
console.log(result.is_valid, result.score);import os
import requests
res = requests.post(
"https://api.scrubimail.com/scrubimail/api/v1/validate/",
headers={"X-API-Key": os.environ["SCRUBIMAIL_API_KEY"]},
json={"email": "[email protected]"},
timeout=30,
)
result = res.json()
print(result["is_valid"], result["score"])<?php
$ch = curl_init("https://api.scrubimail.com/scrubimail/api/v1/validate/");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"X-API-Key: " . getenv("SCRUBIMAIL_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["email" => "[email protected]"]),
]);
$result = json_decode(curl_exec($ch), true);
echo $result["is_valid"] ? "valid" : "invalid";SMTP relay for tools that already send mail
Anything with an SMTP settings screen can send through ScrubiMail. Every message is checked on submission: verified From domain, suppression list and credits.
WordPress
Use an SMTP plugin such as WP Mail SMTP, choose the generic or other SMTP option and enter the settings below.
Web frameworks
Django, Laravel, Rails and Node.js with Nodemailer all have built-in SMTP settings. Point them at the relay and keep your existing mail code.
CRMs and apps with custom SMTP
Any CRM, help desk, billing tool or internal app that lets you enter its own SMTP server can send through ScrubiMail.
SMTP settings
- Host
- smtp.scrubimail.com
- Port
- 587
- Encryption
- STARTTLS (not SSL/TLS on 465)
- Username
- Your ScrubiMail account email
- Password
- An API key with the send scope
- From address
- Any address on a verified domain
Step-by-step setup for Nodemailer, Django, Laravel and WordPress is on the SMTP relay page. We do not publish our own plugins for these tools; they connect through the standard SMTP settings.
Billing with Paystack
Subscriptions and credit purchases are paid through Paystack. You manage plans, credits and invoices from Billing in the dashboard.
Make your first request
Create an account, make an API key and call the API or point your SMTP settings at the relay.