PHP Class Learner\Services\Newsletter\Newsletter

Datei anzeigen Open project: RryLee/learner.video Class Usage Examples

Public Methods

Method Description
send ( string $subject, string $contents ) : associative_array Send a newsletter.
subscribe ( string $email ) : mixed Add a email to list
unsubscribe ( string $email ) : mixed Add a email from list

Method Details

send() public method

Send a newsletter.
public send ( string $subject, string $contents ) : associative_array
$subject string
$contents string
return associative_array with a single entry: - complete bool whether the call worked. reallistically this will always be true as errors will be thrown otherwise.

subscribe() public method

Add a email to list
public subscribe ( string $email ) : mixed
$email string
return mixed

unsubscribe() public method

Add a email from list
public unsubscribe ( string $email ) : mixed
$email string
return mixed