Example #1
0
 /**
  * Send a newsletter.
  *
  * @param  string $subject
  * @param  string $contents
  *
  * @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']);
 }