You are here

public function NewsletterBasic::sendTest in Newsletter 7.2

Same name and namespace in other branches
  1. 7 includes/newsletter.basic.inc \NewsletterBasic::sendTest()

Sends a test newsletter to an email-address. Called from administration Settings tab.

Parameters

$to: The e-mail to send the test newsletter to.

File

includes/newsletter.basic.inc, line 31
Contains NewsletterBasic class and newsletter's module implementation of drupal mail system.

Class

NewsletterBasic
Basic Newsletter class.

Code

public function sendTest($to) {
  $message = drupal_mail('newsletter', 'test', $to, $this->language, array(
    'format' => $this->format,
  ), $this->from);
  return $message['result'];
}