PHP code example of silvershop-suite / newsletter

1. Go to this page and download the library: Download silvershop-suite/newsletter 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/ */

    

silvershop-suite / newsletter example snippets


use SilverShop\Newsletter\Service\NewsletterConsent;

if (!\SilverStripe\Core\Manifest\ModuleLoader::inst()->getManifest()->getModule('silvershop-suite/newsletter')
    || NewsletterConsent::has($email)) {
    // send marketing email
}

> */1 * * * * /path/to/php /path/to/vendor/symbiote/silverstripe-queuedjobs/cli-script.php dev/tasks/ProcessJobQueueTask
>