Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultEmailSender#sendEmail:125 - jakarta.mail.AuthenticationFailedException #13229

Open
tripleabuilderbot opened this issue Mar 20, 2025 · 1 comment
Labels
2.7 Error Report Issue reported via the in-game error reporter

Comments

@tripleabuilderbot
Copy link
Contributor

User Description

In the page of "Play by "Email", I tried to use "Automatically Send Emails" function with email provider gmail. I put my email address at "Email Username" text bar and my password for that google account at "Email Password" text bar then pressed send test email. After that, the error occured.

Log Message

Unable to send email, check SMTP server credentials: jakarta.mail.AuthenticationFailedException: 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 00721157ae682-700b...

TripleA Version

2.7+00000

Java Version

17.0.12

Operating System

Mac OS X

Heap Size

2048M

Stack Trace

Exception: java.io.IOException jakarta.mail.AuthenticationFailedException: 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 00721157ae682-700ba856665sm762027b3.85 - gsmtp

java.lang.Exception
	at games.strategy.engine.posted.game.pbem.DefaultEmailSender.sendEmail(DefaultEmailSender.java:125)
	at games.strategy.engine.framework.startup.ui.posted.game.pbem.SendTestEmailAction.lambda$sendWithProgressWindow$2(SendTestEmailAction.java:41)
	at java.base/java.lang.Thread.run(Thread.java:842)


Exception: jakarta.mail.AuthenticationFailedException 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 00721157ae682-700ba856665sm762027b3.85 - gsmtp

java.lang.Exception
	at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:947)
	at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:858)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:762)
	at jakarta.mail.Service.connect(Service.java:342)
	at games.strategy.engine.posted.game.pbem.DefaultEmailSender.sendEmail(DefaultEmailSender.java:120)
	at games.strategy.engine.framework.startup.ui.posted.game.pbem.SendTestEmailAction.lambda$sendWithProgressWindow$2(SendTestEmailAction.java:41)
	at java.base/java.lang.Thread.run(Thread.java:842)


@tripleabuilderbot tripleabuilderbot added 2.7 Error Report Issue reported via the in-game error reporter labels Mar 20, 2025
@panther2
Copy link
Contributor

Please try a different mail provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Error Report Issue reported via the in-game error reporter
Projects
None yet
Development

No branches or pull requests

2 participants