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

Breadcrumb

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

function SmtpTransport::__construct

Overrides AbstractTransport::__construct

2 calls to SmtpTransport::__construct()
EsmtpTransport::__construct in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
EsmtpTransport::__construct in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
1 method overrides SmtpTransport::__construct()
EsmtpTransport::__construct in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php

File

vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php, line 45

Class

SmtpTransport
Sends emails over SMTP.

Namespace

Symfony\Component\Mailer\Transport\Smtp

Code

public function __construct(?AbstractStream $stream = null, ?EventDispatcherInterface $dispatcher = null, ?LoggerInterface $logger = null) {
    parent::__construct($dispatcher, $logger);
    $this->stream = $stream ?? new SocketStream();
}
RSS feed
Powered by Drupal