PHP code example of yaroslawww / laravel-mail-marketing
1. Go to this page and download the library: Download yaroslawww/laravel-mail-marketing 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/ */
yaroslawww / laravel-mail-marketing example snippets
\MailMarketing\Facades\MailMarketing::driver()
->addMembersToList(
$this->listId,
$this->members
);
// or
MailMarketing::addList($name, $data);
// or
MailMarketing::driver('mailchimp')->addList($name, $data);
bash
php artisan vendor:publish --provider="MailMarketing\ServiceProvider" --tag="config"