Learner\Services\Newsletter\Newsletter::send PHP Method

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.
    public function send($subject, $contents)
    {
        $compaign = News::createCampaign($subject, $contents);
        return News::getApi()->campaigns->send($compaign['id']);
    }