You are here

public function MailTest::getRecipient in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getRecipient()
  2. 3.x src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getRecipient()

Returns the recipient of this newsletter mail.

Return value

string The recipient mail address(es) of this newsletter as a string.

Overrides MailInterface::getRecipient

File

src/Mail/MailTest.php, line 64

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getRecipient() {
  return 'recipient@example.org';
}