You are here

public function MailEntity::getFromAddress in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getFromAddress()
  2. 3.x src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getFromAddress()

Returns the plain mail address.

Return value

string The mail address.

Overrides MailInterface::getFromAddress

2 calls to MailEntity::getFromAddress()
MailEntity::getFromFormatted in src/Mail/MailEntity.php
Returns the formatted from mail address.
MailEntity::getHeaders in src/Mail/MailEntity.php
Returns the mail headers.

File

src/Mail/MailEntity.php, line 183

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

public function getFromAddress() {
  return $this
    ->getNewsletter()->from_address;
}