PHP code example of be-lenka / smartemailing

1. Go to this page and download the library: Download be-lenka/smartemailing 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/ */

    

be-lenka / smartemailing example snippets


$this->smartEmailing->importContact($email, $name, $surname, $language, $contactLists, $properties, $customFields, $purposes, $settings);

$this->smartEmailing->importOrders($data);

$this->smartEmailing->getContactsByEmail($email);

$this->smartEmailing->getContacts();

$this->smartEmailing->getContact($id);