triplea icon indicating copy to clipboard operation
triplea copied to clipboard

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

Open tripleabuilderbot opened this issue 3 years ago • 4 comments

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)


tripleabuilderbot avatar Jan 07 '22 22:01 tripleabuilderbot

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?

Keine-Andeutung avatar Mar 06 '22 23:03 Keine-Andeutung

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

beelee1 avatar Mar 07 '22 04:03 beelee1

@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 avatar Mar 07 '22 18:03 panther2

Accidentally closed, so reopened.

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

panther2 avatar Mar 14 '22 11:03 panther2

@DanVanAtta leaving open

beelee1 avatar Nov 01 '22 05:11 beelee1