ProMailerSubscribers::importCSV()
Import subscribers from given CSV file
First line must contain header line with one of them being "email". Columns other than "email" are placed in the "data" array of each subscriber. Imported subscribers are considered "confirmed". To import subscriber removals, prepend email address with a minus, i.e. "-you
Usage
// basic usage
$array = $proMailerSubscribers->importCSV(string $csvFile, $list);
// usage with all arguments
$array = $proMailerSubscribers->importCSV(string $csvFile, $list, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$csvFile | string | |
$list | int ProMailerList | |
$options (optional) | array |
|
Return value
array boolReturns false on fail or on success returns array with counts of 'added', 'failed', 'skipped', 'removed'
ProMailerSubscribers methods and properties
API reference based on ProcessWire core version 3.0.253