Exceptions
Exception
Symfony\Component\Mailer\Exception\ TransportException
in
vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
(line 198)
$message = sprintf('Failed to authenticate on SMTP server with username "%s" using the following authenticators: "%s".', $this->username, implode('", "', $authNames));
foreach ($errors as $name => $error) {
$message .= sprintf(' Authenticator "%s" returned "%s".', $name, $error);
}
throw new TransportException($message);
}
}
in
vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
->
handleAuth
(line 123)
$capabilities = $this->callHeloCommand();
}
if (\array_key_exists('AUTH', $capabilities)) {
$this->handleAuth($capabilities['AUTH']);
}
}
private function callHeloCommand(): array
{
in
vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php
->
doHeloCommand
(line 253)
$this->getLogger()->debug(sprintf('Email transport "%s" starting', __CLASS__));
$this->stream->initialize();
$this->assertResponseCode($this->getFullResponse(), [220]);
$this->doHeloCommand();
$this->started = true;
$this->lastMessageTime = 0;
$this->getLogger()->debug(sprintf('Email transport "%s" started', __CLASS__));
}
in
vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php
->
start
(line 194)
if (microtime(true) - $this->lastMessageTime > $this->pingThreshold) {
$this->ping();
}
if (!$this->started) {
$this->start();
}
try {
$envelope = $message->getEnvelope();
$this->doMailFromCommand($envelope->getSender()->getEncodedAddress());
in
vendor/symfony/mailer/Transport/AbstractTransport.php
->
doSend
(line 72)
$envelope = $event->getEnvelope();
$message = $event->getMessage();
}
$message = new SentMessage($message, $envelope);
$this->doSend($message);
$this->checkThrottling();
return $message;
}
in
vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php
->
send
(line 136)
}
public function send(RawMessage $message, ?Envelope $envelope = null): ?SentMessage
{
try {
$message = parent::send($message, $envelope);
} catch (TransportExceptionInterface $e) {
if ($this->started) {
try {
$this->executeCommand("RSET\r\n", [250]);
} catch (TransportExceptionInterface $_) {
in
vendor/symfony/mailer/Transport/Transports.php
->
send
(line 51)
public function send(RawMessage $message, ?Envelope $envelope = null): ?SentMessage
{
/** @var Message $message */
if (RawMessage::class === \get_class($message) || !$message->getHeaders()->has('X-Transport')) {
return $this->default->send($message, $envelope);
}
$headers = $message->getHeaders();
$transport = $headers->get('X-Transport')->getBody();
$headers->remove('X-Transport');
in
vendor/symfony/mailer/Mailer.php
->
send
(line 45)
}
public function send(RawMessage $message, ?Envelope $envelope = null): void
{
if (null === $this->bus) {
$this->transport->send($message, $envelope);
return;
}
if (null !== $this->dispatcher) {
->htmlTemplate('__email/client_creation_compte.html.twig')
->context([
'prenomClient' => $client->getName(),
]);
//->html('<p>Votre podcast est disponible</p>Lien ici : ');
$mailer->send($email);
return $this->redirectToRoute('admin_index');
} else {
$error = 'An account already exists with this email<br><br>';
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
new
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Stack Trace
TransportException
|
---|
Symfony\Component\Mailer\Exception\TransportException: Failed to authenticate on SMTP server with username "support@voxdia.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: (reason unavailable)".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 5.7.8 Error: authentication failed: (reason unavailable)".". at vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php:198 at Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport->handleAuth() (vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php:123) at Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport->doHeloCommand() (vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:253) at Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->start() (vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:194) at Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->doSend() (vendor/symfony/mailer/Transport/AbstractTransport.php:72) at Symfony\Component\Mailer\Transport\AbstractTransport->send() (vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:136) at Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->send() (vendor/symfony/mailer/Transport/Transports.php:51) at Symfony\Component\Mailer\Transport\Transports->send() (vendor/symfony/mailer/Mailer.php:45) at Symfony\Component\Mailer\Mailer->send() (src/Controller/FrontController.php:87) at App\Controller\FrontController->new() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/var/www/voxdia-prod/vendor/autoload_runtime.php') (public/index.php:5) |