You are here

function MailEntity::getFromAddress in Simplenews 8

Same name and namespace in other branches
  1. 8.2 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 202

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

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