Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Email.php

function Email::from

Return value

$this

File

vendor/symfony/mime/Email.php, line 121

Class

Email
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Mime

Code

public function from(Address|string ...$addresses) : static {
    if (!$addresses) {
        throw new LogicException('"from()" must be called with at least one address.');
    }
    return $this->setListAddressHeaderBody('From', $addresses);
}
RSS feed
Powered by Drupal