PHP code example of maildrop / maildrop-php
1. Go to this page and download the library: Download maildrop/maildrop-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
maildrop / maildrop-php example snippets
use Maildrop\Maildrop;
// First, instantiate the SDK with the ClientApiKey of one of your account
// See https://doc.maildrop.fr/-t44.html#Trouver_ClientApiKey to find the right ClientApiKey
Maildrop::setDefaultClientApiKey("client-apikey");
$md = new Maildrop();
// Now, add a new contact to a contact list
$md->subscribers()->add([
'listid' => 'a7fb155366727c500406344b5f196f3a',
'email' => '[email protected]'
]);
bash
composer