updateDisposableDomains (emails/import.php)

appwrite · packages/emails/import.php · php · BSD-3-Clause
email

CLI tool to update disposable and free email domain lists for Appwrite.

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
<?php

require_once __DIR__.'/vendor/autoload.php';

use Utopia\CLI\CLI;
use Utopia\Console\Console;
use Utopia\Validator\Boolean;
use Utopia\Validator\Text;

const CONFIG_DIR = __DIR__.'/data';

/**
 * Source configurations for disposable email domains
 */
const DISPOSABLE_SOURCES = [
    'manual' => [
        'name' => 'Manual Disposable Email Domains',
        'url' => null,
        'configFile' => CONFIG_DIR.'/disposable-domains-manual.php',
    ],
    'martenson' => [
        'name' => 'Martenson Disposable Email Domains',
        'url' => 'https://raw.githubusercontent.com/d

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key