You are here

public function MailTest::getFromFormatted in Simplenews 8

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

Returns the formatted from mail address.

Return value

string The mail address with a name.

Overrides MailInterface::getFromFormatted

File

src/Mail/MailTest.php, line 40

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getFromFormatted() {
  return 'Test <simpletest@example.com>';
}