Symfony Exception

TransportException

HTTP 500 Internal Server Error

Failed to authenticate on SMTP server with username "email@hubburger.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6".".

Exception

Symfony\Component\Mailer\Exception\ TransportException

Show exception properties
Symfony\Component\Mailer\Exception\TransportException {#4136
  -debug: ""
}
  1.         $message sprintf('Failed to authenticate on SMTP server with username "%s" using the following authenticators: "%s".'$this->usernameimplode('", "'$authNames));
  2.         foreach ($errors as $name => $error) {
  3.             $message .= sprintf(' Authenticator "%s" returned "%s".'$name$error);
  4.         }
  5.         throw new TransportException($message);
  6.     }
  7. }
  1.             $capabilities $this->callHeloCommand();
  2.         }
  3.         if (\array_key_exists('AUTH'$capabilities)) {
  4.             $this->handleAuth($capabilities['AUTH']);
  5.         }
  6.     }
  7.     private function callHeloCommand(): array
  8.     {
  1.         $this->getLogger()->debug(sprintf('Email transport "%s" starting'__CLASS__));
  2.         $this->stream->initialize();
  3.         $this->assertResponseCode($this->getFullResponse(), [220]);
  4.         $this->doHeloCommand();
  5.         $this->started true;
  6.         $this->lastMessageTime 0;
  7.         $this->getLogger()->debug(sprintf('Email transport "%s" started'__CLASS__));
  8.     }
  1.         if (microtime(true) - $this->lastMessageTime $this->pingThreshold) {
  2.             $this->ping();
  3.         }
  4.         if (!$this->started) {
  5.             $this->start();
  6.         }
  7.         try {
  8.             $envelope $message->getEnvelope();
  9.             $this->doMailFromCommand($envelope->getSender()->getEncodedAddress());
  1.             $envelope $event->getEnvelope();
  2.             $message $event->getMessage();
  3.         }
  4.         $message = new SentMessage($message$envelope);
  5.         $this->doSend($message);
  6.         $this->checkThrottling();
  7.         return $message;
  8.     }
  1.     }
  2.     public function send(RawMessage $messageEnvelope $envelope null): ?SentMessage
  3.     {
  4.         try {
  5.             $message parent::send($message$envelope);
  6.         } catch (TransportExceptionInterface $e) {
  7.             if ($this->started) {
  8.                 try {
  9.                     $this->executeCommand("RSET\r\n", [250]);
  10.                 } catch (TransportExceptionInterface $_) {
  1.     public function send(RawMessage $messageEnvelope $envelope null): ?SentMessage
  2.     {
  3.         /** @var Message $message */
  4.         if (RawMessage::class === \get_class($message) || !$message->getHeaders()->has('X-Transport')) {
  5.             return $this->default->send($message$envelope);
  6.         }
  7.         $headers $message->getHeaders();
  8.         $transport $headers->get('X-Transport')->getBody();
  9.         $headers->remove('X-Transport');
  1.         $this->transport $transport;
  2.     }
  3.     public function __invoke(SendEmailMessage $message): ?SentMessage
  4.     {
  5.         return $this->transport->send($message->getMessage(), $message->getEnvelope());
  6.     }
  7. }
  1.                         throw $ack->getError();
  2.                     } else {
  3.                         $result $ack->getResult();
  4.                     }
  5.                 } else {
  6.                     $result $handler($message);
  7.                 }
  8.                 $handledStamp HandledStamp::fromDescriptor($handlerDescriptor$result);
  9.                 $envelope $envelope->with($handledStamp);
  10.                 $this->logger->info('Message {class} handled by {handler}'$context + ['handler' => $handledStamp->getHandlerName()]);
  1.                 $envelope $sender->send($envelope->with(new SentStamp(\get_class($sender), \is_string($alias) ? $alias null)));
  2.             }
  3.         }
  4.         if (null === $sender) {
  5.             return $stack->next()->handle($envelope$stack);
  6.         }
  7.         // message should only be sent and not be handled by the next middleware
  8.         return $envelope;
  9.     }
  1.             // mark the message as "received" from the original transport
  2.             // this guarantees the same behavior as when originally received
  3.             $envelope $envelope->with(new ReceivedStamp($sentToFailureStamp->getOriginalReceiverName()));
  4.         }
  5.         return $stack->next()->handle($envelope$stack);
  6.     }
  7. }
  1.         // First time we get here, mark as inside a "root dispatch" call:
  2.         $this->isRootDispatchCallRunning true;
  3.         try {
  4.             // Execute the whole middleware stack & message handling for main dispatch:
  5.             $returnedEnvelope $stack->next()->handle($envelope$stack);
  6.         } catch (\Throwable $exception) {
  7.             /*
  8.              * Whenever an exception occurs while handling a message that has
  9.              * queued other messages, we drop the queued ones.
  10.              * This is intentional since the queued commands were likely dependent
  1.         $amqpReceivedStamp $envelope->last(LegacyAmqpReceivedStamp::class);
  2.         if ($amqpReceivedStamp instanceof LegacyAmqpReceivedStamp && $amqpReceivedStamp->getAmqpEnvelope()->isRedelivery()) {
  3.             throw new RejectRedeliveredMessageException('Redelivered message from AMQP detected that will be rejected and trigger the retry logic.');
  4.         }
  5.         return $stack->next()->handle($envelope$stack);
  6.     }
  7. }
  1.     {
  2.         if (null === $envelope->last(BusNameStamp::class)) {
  3.             $envelope $envelope->with(new BusNameStamp($this->busName));
  4.         }
  5.         return $stack->next()->handle($envelope$stack);
  6.     }
  7. }
  1.         if (!$middlewareIterator->valid()) {
  2.             return $envelope;
  3.         }
  4.         $stack = new StackMiddleware($middlewareIterator);
  5.         return $middlewareIterator->current()->handle($envelope$stack);
  6.     }
  7. }
  1.             $event = new MessageEvent($clonedMessage$clonedEnvelope, (string) $this->transporttrue);
  2.             $this->dispatcher->dispatch($event);
  3.         }
  4.         try {
  5.             $this->bus->dispatch(new SendEmailMessage($message$envelope));
  6.         } catch (HandlerFailedException $e) {
  7.             foreach ($e->getNestedExceptions() as $nested) {
  8.                 if ($nested instanceof TransportExceptionInterface) {
  9.                     throw $nested;
  10.                 }
  1.      *
  2.      * @return void
  3.      */
  4.     protected function send(string $content, array $records)
  5.     {
  6.         $this->mailer->send($this->buildMessage($content$records));
  7.     }
  8.     /**
  9.      * Gets the formatter for the Message subject.
  10.      *
  1.         }
  2.     }
  3.     private function doWrite(array|LogRecord $record): void
  4.     {
  5.         $this->send((string) $record['formatted'], [$record]);
  6.     }
  7.     /**
  8.      * Send a mail with the given content.
  9.      *
  1.     {
  2.         abstract private function doWrite(array|LogRecord $record): void;
  3.         protected function write(array $record): void
  4.         {
  5.             $this->doWrite($record);
  6.         }
  7.     }
  8. }
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function critical($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::CRITICAL, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the ALERT level.
  10.      *
  1.     {
  2.         if (null !== $this->logger) {
  3.             if (null !== $logLevel) {
  4.                 $this->logger->log($logLevel$message, ['exception' => $exception]);
  5.             } elseif (!$exception instanceof HttpExceptionInterface || $exception->getStatusCode() >= 500) {
  6.                 $this->logger->critical($message, ['exception' => $exception]);
  7.             } else {
  8.                 $this->logger->error($message, ['exception' => $exception]);
  9.             }
  10.         }
  11.     }
  1.             break;
  2.         }
  3.         $e FlattenException::createFromThrowable($throwable);
  4.         $this->logException($throwablesprintf('Uncaught PHP Exception %s: "%s" at %s line %s'$e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()), $logLevel);
  5.     }
  6.     public function onKernelException(ExceptionEvent $event)
  7.     {
  8.         if (null === $this->controller) {
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.     ) {
  2.     }
  3.     public function dispatch(object $eventstring $eventName null): object
  4.     {
  5.         $event parent::dispatch($event$eventName);
  6.         if ($event instanceof ConfigurableEvent && $this->site->hasSite()) {
  7.             if (!$eventName) {
  8.                 $eventName get_class($event);
  9.             }
  10.             $this->runEvents($event, (string)$eventName);
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /var/www/html/apps/cms/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 537)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 $exceptionHandler($exception);
  6.                 return;
  7.             }
  8.             $handlerException ??= $exception;
  9.         } catch (\Throwable $handlerException) {
ErrorHandler->handleException()

Stack Trace

TransportException
Symfony\Component\Mailer\Exception\TransportException:
Failed to authenticate on SMTP server with username "email@hubburger.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6".".

  at /var/www/html/apps/cms/vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php:198
  at Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport->handleAuth()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php:123)
  at Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport->doHeloCommand()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:253)
  at Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->start()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:194)
  at Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->doSend()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Transport/AbstractTransport.php:72)
  at Symfony\Component\Mailer\Transport\AbstractTransport->send()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:136)
  at Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->send()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Transport/Transports.php:51)
  at Symfony\Component\Mailer\Transport\Transports->send()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Messenger/MessageHandler.php:31)
  at Symfony\Component\Mailer\Messenger\MessageHandler->__invoke()
     (/var/www/html/apps/cms/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php:97)
  at Symfony\Component\Messenger\Middleware\HandleMessageMiddleware->handle()
     (/var/www/html/apps/cms/vendor/symfony/messenger/Middleware/SendMessageMiddleware.php:73)
  at Symfony\Component\Messenger\Middleware\SendMessageMiddleware->handle()
     (/var/www/html/apps/cms/vendor/symfony/messenger/Middleware/FailedMessageProcessingMiddleware.php:34)
  at Symfony\Component\Messenger\Middleware\FailedMessageProcessingMiddleware->handle()
     (/var/www/html/apps/cms/vendor/symfony/messenger/Middleware/DispatchAfterCurrentBusMiddleware.php:68)
  at Symfony\Component\Messenger\Middleware\DispatchAfterCurrentBusMiddleware->handle()
     (/var/www/html/apps/cms/vendor/symfony/messenger/Middleware/RejectRedeliveredMessageMiddleware.php:48)
  at Symfony\Component\Messenger\Middleware\RejectRedeliveredMessageMiddleware->handle()
     (/var/www/html/apps/cms/vendor/symfony/messenger/Middleware/AddBusNameStampMiddleware.php:37)
  at Symfony\Component\Messenger\Middleware\AddBusNameStampMiddleware->handle()
     (/var/www/html/apps/cms/vendor/symfony/messenger/MessageBus.php:77)
  at Symfony\Component\Messenger\MessageBus->dispatch()
     (/var/www/html/apps/cms/vendor/symfony/mailer/Mailer.php:63)
  at Symfony\Component\Mailer\Mailer->send()
     (/var/www/html/apps/cms/vendor/symfony/monolog-bridge/Handler/MailerHandler.php:85)
  at Symfony\Bridge\Monolog\Handler\MailerHandler->send()
     (/var/www/html/apps/cms/vendor/symfony/monolog-bridge/Handler/MailerHandler.php:72)
  at Symfony\Bridge\Monolog\Handler\MailerHandler->doWrite()
     (/var/www/html/apps/cms/vendor/symfony/monolog-bridge/Handler/CompatibilityProcessingHandler.php:48)
  at Symfony\Bridge\Monolog\Handler\MailerHandler->write()
     (/var/www/html/apps/cms/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/var/www/html/apps/cms/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/var/www/html/apps/cms/vendor/monolog/monolog/src/Monolog/Logger.php:663)
  at Monolog\Logger->critical()
     (/var/www/html/apps/cms/vendor/symfony/http-kernel/EventListener/ErrorListener.php:164)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logException()
     (/var/www/html/apps/cms/vendor/symfony/http-kernel/EventListener/ErrorListener.php:78)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->logKernelException()
     (/var/www/html/apps/cms/vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/html/apps/cms/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/html/apps/cms/vendor/kingapp/event/Service/EventDispatcher.php:30)
  at KingApp\EventBundle\Service\EventDispatcher->dispatch()
     (/var/www/html/apps/cms/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/www/html/apps/cms/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/www/html/apps/cms/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:131)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/www/html/apps/cms/vendor/symfony/error-handler/ErrorHandler.php:537)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()