triplea-game / triplea

TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
https://triplea-game.org/
GNU General Public License v3.0
1.32k stars 392 forks source link

2.5.22294: DefaultEmailSender#sendEmail:124 - jakarta.mail.AuthenticationFailedException #9998

Open tripleabuilderbot opened 2 years ago

tripleabuilderbot commented 2 years ago

Log Message

Unable to send email, check SMTP server credentials: jakarta.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [HE1PR0701CA0066.eurprd07.prod.outlook.com]

TripleA Version

2.5.22294

Java Version

11.0.6

Operating System

Windows 10

Memory

Heap utilization statistics [MB] Used Memory: 34 Free memory: 1945 Total memory: 1979 Max memory: 1979

Stack Trace

Exception: java.io.IOExceptionjakarta.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [HE1PR0701CA0066.eurprd07.prod.outlook.com]

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

Exception: jakarta.mail.AuthenticationFailedException535 5.7.3 Authentication unsuccessful [HE1PR0701CA0066.eurprd07.prod.outlook.com]

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:119)
    at games.strategy.engine.framework.startup.ui.posted.game.pbem.SendTestEmailAction.lambda$sendWithProgressWindow$2(SendTestEmailAction.java:46)
    at java.base/java.lang.Thread.run(Thread.java:834)
Keine-Andeutung commented 2 years ago

I think I know why this error occurs on my system. I recently got a message from Google that they won't allow third-party apps that only require a username and password and use SMTP technology to use Gmail. They recommend using apps that allow you to sign in with Google, which TripleA can't do at the moment as far as I know. Can this be changed in future versions of TripleA?

beelee1 commented 2 years ago

I wonder if that is related to this https://forums.triplea-game.org/topic/3061/marti-issues/19 or this https://forums.triplea-game.org/topic/3148/dice-server-registration-not-working

panther2 commented 2 years ago

@beelee1

Likely not. This issue is about an error that occurrs if you have not allowed "less secure apps" in the security settings of your Google account. When PBF TripleA acts like a mail-software that sends mail. Google requires the named setting in case you send mails with Google mail accounts with "No-Google"-software.

panther2 commented 2 years ago

Accidentally closed, so reopened.

More background: https://forums.triplea-game.org/topic/3157/

beelee1 commented 1 year ago

@DanVanAtta leaving open