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

Breadcrumb

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

function SendmailTransport::send

Overrides AbstractTransport::send

File

vendor/symfony/mailer/Transport/SendmailTransport.php, line 72

Class

SendmailTransport
SendmailTransport for sending mail through a Sendmail/Postfix (etc..) binary.

Namespace

Symfony\Component\Mailer\Transport

Code

public function send(RawMessage $message, ?Envelope $envelope = null) : ?SentMessage {
    if ($this->transport) {
        return $this->transport
            ->send($message, $envelope);
    }
    return parent::send($message, $envelope);
}
RSS feed
Powered by Drupal