Skip to content

Instantly share code, notes, and snippets.

View vdepagter's full-sized avatar
🎯
Focusing

Valentijn vdepagter

🎯
Focusing
  • Netherlands
  • 04:01 (UTC +02:00)
View GitHub Profile
@NTICompass
NTICompass / mandrillDomains.php
Last active October 31, 2023 16:05
Bulk-remove Mandrill sending domains
<?php
// Quick and dirty script to remove spam domains from our mandrill account
define('API_KEY', '');
// Their API doesn't offer a "delete" method, so I'm using their website
define('USERNAME', '');
define('PASSWORD', '');
echo 'Downloading domain list...';
// Step 1, get all "sending domains" via their API
$jsonKey = json_encode(['key' => API_KEY]);