PHP Class Learner\Services\Newsletter\Newsletter

Afficher le fichier Open project: RryLee/learner.video Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Send a newsletter.
public send ( string $subject, string $contents ) : associative_array
$subject string
$contents string
Résultat 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 méthode

Add a email to list
public subscribe ( string $email ) : mixed
$email string
Résultat mixed

unsubscribe() public méthode

Add a email from list
public unsubscribe ( string $email ) : mixed
$email string
Résultat mixed