Your software
My Mautic version is: 5.0.4
My PHP version is: 8.0.30
My Database type and version is: Maria DB 10.5.23
Your problem
My problem is:
When testing my SMTP credentials in the config, i get this error:
Failed to authenticate on SMTP server with username “emailappsmtp.5cff9b4b6xxxxx” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Authentication Failed”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Authentication Failed”.”.
When testing on the same server with swaks, everything is working and the email arrives:
swaks --to test@mydomain.eu --from hello@test.io --server smtp.zeptomail.eu --port 587 --tls --auth LOGIN --auth-user “emailappsmtp.5cff9b4b6xxxxx” --auth-password "xxxxxx
"
These errors are showing in the log: None
Steps I have tried to fix the problem: Verified my user and password 10 times…
I can confirm this is still the issue.
I just burnt three hours trying to configure an SMTP connection using a custom port with TLS and LOGIN, documentation is weak on the mautic end, and when checking Symphony documentation: Sending Emails with Mailer (Symfony 5.x Docs), it does say that the new DSN will run through different smtp methods automatically.
Was going a bit mad as when using SMTPer everything was working. Thanks @ruben123 for your post - saved me here and got things working!
Please make that when entering the password you do NOT leave the “lock” icon in the field - it will be considered part of the password!
Ugly UI bug but easy to circumvent once you know it
I’m truly surprised and amazed! After removing the lock icon, my connection was successful. Thank you so much! But honestly, their UI is quite misleading.