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

Breadcrumb

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

function Envelope::create

2 calls to Envelope::create()
AbstractTransport::send in vendor/symfony/mailer/Transport/AbstractTransport.php
Mailer::send in vendor/symfony/mailer/Mailer.php

File

vendor/symfony/mailer/Envelope.php, line 36

Class

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

Namespace

Symfony\Component\Mailer

Code

public static function create(RawMessage $message) : self {
    if (RawMessage::class === $message::class) {
        throw new LogicException('Cannot send a RawMessage instance without an explicit Envelope.');
    }
    return new DelayedEnvelope($message);
}
RSS feed
Powered by Drupal