contao / docs

Contao Documentation
https://docs.contao.org
Other
31 stars 149 forks source link

Update settings.en.md #1287

Closed Tastaturberuf closed 8 months ago

Tastaturberuf commented 8 months ago

Double percent sign is wrong, should be @ =>%40

Tastaturberuf commented 8 months ago

Not in this case, because the urlencode starts first and in this example the final result is smtps://email%@example.org:foobar@example.org. An hour ago i run in this error.

Tastaturberuf commented 8 months ago

Symfony dosn't mention double encoding too: https://symfony.com/doc/5.x/mailer.html#transport-setup

Tastaturberuf commented 8 months ago

The error was (user and domain changed):

In EsmtpTransport.php line 198:

  Failed to authenticate on SMTP server with username "user%@domain.de" using the following authenticators: "LOGIN", "PLAIN", "XOAUTH2". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with me
  ssage "535-5.7.8 Username and Password not accepted. For more information, go to
  535 5.7.8  https://support.google.com/mail/?p=BadCredentials c2-20020adfe742000000b003366a9cb0d1sm1971082wrn.92 - gsmtp".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535-5.7.8 Use
  rname and Password not accepted. For more information, go to
  535 5.7.8  https://support.google.com/mail/?p=BadCredentials c2-20020adfe742000000b003366a9cb0d1sm1971082wrn.92 - gsmtp".". Authenticator "XOAUTH2" returned "Expected response code "235" but got code "334", with message "334 eyJzdGF
  0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==".".
fritzmg commented 8 months ago

Did you use environment variables or write the credentials directly into the config.yaml?

Tastaturberuf commented 8 months ago

In the MAILER_DSN.

fritzmg commented 8 months ago

The double encoding requirement only applies to YAML.

// (accidentally closed)

Tastaturberuf commented 8 months ago

Ok, then we can close this anyway. Thansk for clearing that topic.

https://docs.contao.org/manual/en/system/settings/#e-mail-sending-configuration

its written here, but there are so many boxes i have overlook it.