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

Breadcrumb

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

interface TransportInterface

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Common/Export/TransportInterface.php \OpenTelemetry\SDK\Common\Export\TransportInterface

Interface for all mailer transports.

When sending emails, you should prefer MailerInterface implementations as they allow asynchronous sending.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Symfony\Component\Mailer\Transport\TransportInterface extends \Symfony\Component\Mailer\Transport\Stringable

Expanded class hierarchy of TransportInterface

All classes that implement TransportInterface

6 files declare their use of TransportInterface
AbstractTransportFactoryTestCase.php in vendor/symfony/mailer/Test/AbstractTransportFactoryTestCase.php
EsmtpTransportFactory.php in vendor/symfony/mailer/Transport/Smtp/EsmtpTransportFactory.php
Mailer.php in vendor/symfony/mailer/Mailer.php
MailerTestCommand.php in vendor/symfony/mailer/Command/MailerTestCommand.php
MessageHandler.php in vendor/symfony/mailer/Messenger/MessageHandler.php

... See full list

File

vendor/symfony/mailer/Transport/TransportInterface.php, line 27

Namespace

Symfony\Component\Mailer\Transport
View source
interface TransportInterface extends \Stringable {
    
    /**
     * @throws TransportExceptionInterface
     */
    public function send(RawMessage $message, ?Envelope $envelope = null) : ?SentMessage;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
TransportInterface::send public function 3

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal