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

Breadcrumb

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

function SmtpTransport::doMailFromCommand

1 call to SmtpTransport::doMailFromCommand()
SmtpTransport::doSend in vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php

File

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

Class

SmtpTransport
Sends emails over SMTP.

Namespace

Symfony\Component\Mailer\Transport\Smtp

Code

private function doMailFromCommand(string $address, bool $smtputf8) : void {
    if ($smtputf8 && !$this->serverSupportsSmtpUtf8()) {
        throw new InvalidArgumentException('Invalid addresses: non-ASCII characters not supported in local-part of email.');
    }
    $this->executeCommand(\sprintf("MAIL FROM:<%s>%s\r\n", $address, $smtputf8 ? ' SMTPUTF8' : ''), [
        250,
    ]);
}
RSS feed
Powered by Drupal